{"action":"created","comment":{"url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/comments/236077807","pull_request_review_id":178086112,"id":236077807,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjA3NzgwNw==","diff_hunk":"@@ -0,0 +1,133 @@\n+package ru.hse.mit\n+\n+sealed trait CalcToken {\n+  def +(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def -(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def *(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def /(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def %(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def ==(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def !=(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def <=(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def >=(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def <(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def >(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def ||(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+\n+  def &&(that: CalcToken): CalcToken = throw new UnsupportedOperationException()\n+}\n+\n+case class IntCalcToken(private val value: Int) extends CalcToken {","path":"src/main/scala/ru/hse/mit/CalcToken.scala","position":null,"original_position":31,"commit_id":"b86426ddab0d4608a593cfd52ddcbabefb414018","original_commit_id":"e8a9e4d29d675860983c7b5e5a72acc259fd49b8","user":{"login":"adkozlov","id":1233785,"node_id":"MDQ6VXNlcjEyMzM3ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1233785?v=4","gravatar_id":"","url":"https://api.github.com/users/adkozlov","html_url":"https://github.com/adkozlov","followers_url":"https://api.github.com/users/adkozlov/followers","following_url":"https://api.github.com/users/adkozlov/following{/other_user}","gists_url":"https://api.github.com/users/adkozlov/gists{/gist_id}","starred_url":"https://api.github.com/users/adkozlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adkozlov/subscriptions","organizations_url":"https://api.github.com/users/adkozlov/orgs","repos_url":"https://api.github.com/users/adkozlov/repos","events_url":"https://api.github.com/users/adkozlov/events{/privacy}","received_events_url":"https://api.github.com/users/adkozlov/received_events","type":"User","site_admin":false},"body":"> А поле сделано приватным, потому что обращаться к нему не из класса я не хочу.\r\nВот я об этом и говорю: это не case class по определению.\r\nА к pattern matching case никакого отношения не имеет: `case token: IntCalcToken`.","created_at":"2018-11-25T15:31:26Z","updated_at":"2018-11-25T15:31:26Z","html_url":"https://github.com/adkozlov/scala-2018/pull/12#discussion_r236077807","pull_request_url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/comments/236077807"},"html":{"href":"https://github.com/adkozlov/scala-2018/pull/12#discussion_r236077807"},"pull_request":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12"}},"in_reply_to_id":231254581},"pull_request":{"url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12","id":226321689,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzIxNjg5","html_url":"https://github.com/adkozlov/scala-2018/pull/12","diff_url":"https://github.com/adkozlov/scala-2018/pull/12.diff","patch_url":"https://github.com/adkozlov/scala-2018/pull/12.patch","issue_url":"https://api.github.com/repos/adkozlov/scala-2018/issues/12","number":12,"state":"open","locked":false,"title":" HA01, Смирдин Андрей","user":{"login":"AndreySmirdin","id":12458816,"node_id":"MDQ6VXNlcjEyNDU4ODE2","avatar_url":"https://avatars0.githubusercontent.com/u/12458816?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreySmirdin","html_url":"https://github.com/AndreySmirdin","followers_url":"https://api.github.com/users/AndreySmirdin/followers","following_url":"https://api.github.com/users/AndreySmirdin/following{/other_user}","gists_url":"https://api.github.com/users/AndreySmirdin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreySmirdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreySmirdin/subscriptions","organizations_url":"https://api.github.com/users/AndreySmirdin/orgs","repos_url":"https://api.github.com/users/AndreySmirdin/repos","events_url":"https://api.github.com/users/AndreySmirdin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreySmirdin/received_events","type":"User","site_admin":false},"body":"Решил сделать решение так, чтобы было как можно проще расширять его. Из-за этого получилось довольно много кода. Но зато расширять теперь действительно совсем просто.\r\n\r\nА еще я решил не разрешать никакие операции, где требуются приведения типов. В этих случаях будет кидаться исключение.","created_at":"2018-10-27T20:28:23Z","updated_at":"2018-11-25T15:31:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a39bb88e3097049ace927e6e95adda7aaf40fe7d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12/commits","review_comments_url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12/comments","review_comment_url":"https://api.github.com/repos/adkozlov/scala-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adkozlov/scala-2018/issues/12/comments","statuses_url":"https://api.github.com/repos/adkozlov/scala-2018/statuses/b86426ddab0d4608a593cfd52ddcbabefb414018","head":{"label":"AndreySmirdin:01-calculator","ref":"01-calculator","sha":"b86426ddab0d4608a593cfd52ddcbabefb414018","user":{"login":"AndreySmirdin","id":12458816,"node_id":"MDQ6VXNlcjEyNDU4ODE2","avatar_url":"https://avatars0.githubusercontent.com/u/12458816?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreySmirdin","html_url":"https://github.com/AndreySmirdin","followers_url":"https://api.github.com/users/AndreySmirdin/followers","following_url":"https://api.github.com/users/AndreySmirdin/following{/other_user}","gists_url":"https://api.github.com/users/AndreySmirdin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreySmirdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreySmirdin/subscriptions","organizations_url":"https://api.github.com/users/AndreySmirdin/orgs","repos_url":"https://api.github.com/users/AndreySmirdin/repos","events_url":"https://api.github.com/users/AndreySmirdin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreySmirdin/received_events","type":"User","site_admin":false},"repo":{"id":154876488,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NzY0ODg=","name":"scala-2018","full_name":"AndreySmirdin/scala-2018","private":false,"owner":{"login":"AndreySmirdin","id":12458816,"node_id":"MDQ6VXNlcjEyNDU4ODE2","avatar_url":"https://avatars0.githubusercontent.com/u/12458816?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreySmirdin","html_url":"https://github.com/AndreySmirdin","followers_url":"https://api.github.com/users/AndreySmirdin/followers","following_url":"https://api.github.com/users/AndreySmirdin/following{/other_user}","gists_url":"https://api.github.com/users/AndreySmirdin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreySmirdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreySmirdin/subscriptions","organizations_url":"https://api.github.com/users/AndreySmirdin/orgs","repos_url":"https://api.github.com/users/AndreySmirdin/repos","events_url":"https://api.github.com/users/AndreySmirdin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreySmirdin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AndreySmirdin/scala-2018","description":"Scala course at HSE/ITMO, Fall'18.","fork":true,"url":"https://api.github.com/repos/AndreySmirdin/scala-2018","forks_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/forks","keys_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/teams","hooks_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/hooks","issue_events_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/issues/events{/number}","events_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/events","assignees_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/assignees{/user}","branches_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/branches{/branch}","tags_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/tags","blobs_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/languages","stargazers_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/stargazers","contributors_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/contributors","subscribers_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/subscribers","subscription_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/subscription","commits_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/contents/{+path}","compare_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/merges","archive_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/downloads","issues_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/issues{/number}","pulls_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/labels{/name}","releases_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/releases{/id}","deployments_url":"https://api.github.com/repos/AndreySmirdin/scala-2018/deployments","created_at":"2018-10-26T18:18:48Z","updated_at":"2018-10-26T18:18:50Z","pushed_at":"2018-11-16T18:18:07Z","git_url":"git://github.com/AndreySmirdin/scala-2018.git","ssh_url":"git@github.com:AndreySmirdin/scala-2018.git","clone_url":"https://github.com/AndreySmirdin/scala-2018.git","svn_url":"https://github.com/AndreySmirdin/scala-2018","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"adkozlov:master","ref":"master","sha":"e4ed1584c2b7e183fc551a92aef7f3af15f5979c","user":{"login":"adkozlov","id":1233785,"node_id":"MDQ6VXNlcjEyMzM3ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1233785?v=4","gravatar_id":"","url":"https://api.github.com/users/adkozlov","html_url":"https://github.com/adkozlov","followers_url":"https://api.github.com/users/adkozlov/followers","following_url":"https://api.github.com/users/adkozlov/following{/other_user}","gists_url":"https://api.github.com/users/adkozlov/gists{/gist_id}","starred_url":"https://api.github.com/users/adkozlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adkozlov/subscriptions","organizations_url":"https://api.github.com/users/adkozlov/orgs","repos_url":"https://api.github.com/users/adkozlov/repos","events_url":"https://api.github.com/users/adkozlov/events{/privacy}","received_events_url":"https://api.github.com/users/adkozlov/received_events","type":"User","site_admin":false},"repo":{"id":152305721,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMDU3MjE=","name":"scala-2018","full_name":"adkozlov/scala-2018","private":false,"owner":{"login":"adkozlov","id":1233785,"node_id":"MDQ6VXNlcjEyMzM3ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1233785?v=4","gravatar_id":"","url":"https://api.github.com/users/adkozlov","html_url":"https://github.com/adkozlov","followers_url":"https://api.github.com/users/adkozlov/followers","following_url":"https://api.github.com/users/adkozlov/following{/other_user}","gists_url":"https://api.github.com/users/adkozlov/gists{/gist_id}","starred_url":"https://api.github.com/users/adkozlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adkozlov/subscriptions","organizations_url":"https://api.github.com/users/adkozlov/orgs","repos_url":"https://api.github.com/users/adkozlov/repos","events_url":"https://api.github.com/users/adkozlov/events{/privacy}","received_events_url":"https://api.github.com/users/adkozlov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/adkozlov/scala-2018","description":"Scala course at HSE/ITMO, Fall'18.","fork":false,"url":"https://api.github.com/repos/adkozlov/scala-2018","forks_url":"https://api.github.com/repos/adkozlov/scala-2018/forks","keys_url":"https://api.github.com/repos/adkozlov/scala-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adkozlov/scala-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adkozlov/scala-2018/teams","hooks_url":"https://api.github.com/repos/adkozlov/scala-2018/hooks","issue_events_url":"https://api.github.com/repos/adkozlov/scala-2018/issues/events{/number}","events_url":"https://api.github.com/repos/adkozlov/scala-2018/events","assignees_url":"https://api.github.com/repos/adkozlov/scala-2018/assignees{/user}","branches_url":"https://api.github.com/repos/adkozlov/scala-2018/branches{/branch}","tags_url":"https://api.github.com/repos/adkozlov/scala-2018/tags","blobs_url":"https://api.github.com/repos/adkozlov/scala-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adkozlov/scala-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adkozlov/scala-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/adkozlov/scala-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adkozlov/scala-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/adkozlov/scala-2018/languages","stargazers_url":"https://api.github.com/repos/adkozlov/scala-2018/stargazers","contributors_url":"https://api.github.com/repos/adkozlov/scala-2018/contributors","subscribers_url":"https://api.github.com/repos/adkozlov/scala-2018/subscribers","subscription_url":"https://api.github.com/repos/adkozlov/scala-2018/subscription","commits_url":"https://api.github.com/repos/adkozlov/scala-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/adkozlov/scala-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/adkozlov/scala-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/adkozlov/scala-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/adkozlov/scala-2018/contents/{+path}","compare_url":"https://api.github.com/repos/adkozlov/scala-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adkozlov/scala-2018/merges","archive_url":"https://api.github.com/repos/adkozlov/scala-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adkozlov/scala-2018/downloads","issues_url":"https://api.github.com/repos/adkozlov/scala-2018/issues{/number}","pulls_url":"https://api.github.com/repos/adkozlov/scala-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/adkozlov/scala-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/adkozlov/scala-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adkozlov/scala-2018/labels{/name}","releases_url":"https://api.github.com/repos/adkozlov/scala-2018/releases{/id}","deployments_url":"https://api.github.com/repos/adkozlov/scala-2018/deployments","created_at":"2018-10-09T19:01:54Z","updated_at":"2018-11-21T10:29:30Z","pushed_at":"2018-11-25T14:31:18Z","git_url":"git://github.com/adkozlov/scala-2018.git","ssh_url":"git@github.com:adkozlov/scala-2018.git","clone_url":"https://github.com/adkozlov/scala-2018.git","svn_url":"https://github.com/adkozlov/scala-2018","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12"},"html":{"href":"https://github.com/adkozlov/scala-2018/pull/12"},"issue":{"href":"https://api.github.com/repos/adkozlov/scala-2018/issues/12"},"comments":{"href":"https://api.github.com/repos/adkozlov/scala-2018/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adkozlov/scala-2018/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/adkozlov/scala-2018/statuses/b86426ddab0d4608a593cfd52ddcbabefb414018"}},"author_association":"NONE"}}
{"actor":{"display_login":"adkozlov"}}