{"action":"created","comment":{"url":"https://api.github.com/repos/scalameta/scalameta/pulls/comments/99615010","pull_request_review_id":20296569,"id":99615010,"diff_hunk":"@@ -1089,7 +1089,10 @@ class ScalametaParser(input: Input, dialect: Dialect) { parser =>\n       simpleTypeRest(autoPos(token match {\n         case LeftParen()  => autoPos(makeTupleType(inParens(types())))\n         case Underscore() => next(); atPos(in.prevTokenPos, auto)(Type.Placeholder(typeBounds()))\n-        case _       =>\n+        case _ if token.is[Literal] =>\n+          if (dialect.allowLiteralTypes) literal()\n+          else throw new UnsupportedOperationException(s\"$dialect doesn't support literal types\")","path":"scalameta/parsers/src/main/scala/scala/meta/internal/parsers/ScalametaParser.scala","position":16,"original_position":16,"commit_id":"75909898d635d59080a61eec3987884394730572","original_commit_id":"75909898d635d59080a61eec3987884394730572","user":{"login":"xavier-fernandez","id":10242025,"avatar_url":"https://avatars.githubusercontent.com/u/10242025?v=3","gravatar_id":"","url":"https://api.github.com/users/xavier-fernandez","html_url":"https://github.com/xavier-fernandez","followers_url":"https://api.github.com/users/xavier-fernandez/followers","following_url":"https://api.github.com/users/xavier-fernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavier-fernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavier-fernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavier-fernandez/subscriptions","organizations_url":"https://api.github.com/users/xavier-fernandez/orgs","repos_url":"https://api.github.com/users/xavier-fernandez/repos","events_url":"https://api.github.com/users/xavier-fernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavier-fernandez/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-02-06T15:51:47Z","updated_at":"2017-02-06T15:51:47Z","html_url":"https://github.com/scalameta/scalameta/pull/640#discussion_r99615010","pull_request_url":"https://api.github.com/repos/scalameta/scalameta/pulls/640","_links":{"self":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/comments/99615010"},"html":{"href":"https://github.com/scalameta/scalameta/pull/640#discussion_r99615010"},"pull_request":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/640"}}},"pull_request":{"url":"https://api.github.com/repos/scalameta/scalameta/pulls/640","id":104717291,"html_url":"https://github.com/scalameta/scalameta/pull/640","diff_url":"https://github.com/scalameta/scalameta/pull/640.diff","patch_url":"https://github.com/scalameta/scalameta/pull/640.patch","issue_url":"https://api.github.com/repos/scalameta/scalameta/issues/640","number":640,"state":"open","locked":false,"title":"SIP-23: Add support to Literal Types syntax (#620)","user":{"login":"xavier-fernandez","id":10242025,"avatar_url":"https://avatars.githubusercontent.com/u/10242025?v=3","gravatar_id":"","url":"https://api.github.com/users/xavier-fernandez","html_url":"https://github.com/xavier-fernandez","followers_url":"https://api.github.com/users/xavier-fernandez/followers","following_url":"https://api.github.com/users/xavier-fernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavier-fernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavier-fernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavier-fernandez/subscriptions","organizations_url":"https://api.github.com/users/xavier-fernandez/orgs","repos_url":"https://api.github.com/users/xavier-fernandez/repos","events_url":"https://api.github.com/users/xavier-fernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavier-fernandez/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-05T21:53:37Z","updated_at":"2017-02-06T15:51:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5328ed0a457251305ef5053c8943b86907b300e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/scalameta/scalameta/pulls/640/commits","review_comments_url":"https://api.github.com/repos/scalameta/scalameta/pulls/640/comments","review_comment_url":"https://api.github.com/repos/scalameta/scalameta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scalameta/scalameta/issues/640/comments","statuses_url":"https://api.github.com/repos/scalameta/scalameta/statuses/75909898d635d59080a61eec3987884394730572","head":{"label":"xavier-fernandez:sip23-literalTypes-#620","ref":"sip23-literalTypes-#620","sha":"75909898d635d59080a61eec3987884394730572","user":{"login":"xavier-fernandez","id":10242025,"avatar_url":"https://avatars.githubusercontent.com/u/10242025?v=3","gravatar_id":"","url":"https://api.github.com/users/xavier-fernandez","html_url":"https://github.com/xavier-fernandez","followers_url":"https://api.github.com/users/xavier-fernandez/followers","following_url":"https://api.github.com/users/xavier-fernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavier-fernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavier-fernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavier-fernandez/subscriptions","organizations_url":"https://api.github.com/users/xavier-fernandez/orgs","repos_url":"https://api.github.com/users/xavier-fernandez/repos","events_url":"https://api.github.com/users/xavier-fernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavier-fernandez/received_events","type":"User","site_admin":false},"repo":{"id":80403460,"name":"scalameta","full_name":"xavier-fernandez/scalameta","owner":{"login":"xavier-fernandez","id":10242025,"avatar_url":"https://avatars.githubusercontent.com/u/10242025?v=3","gravatar_id":"","url":"https://api.github.com/users/xavier-fernandez","html_url":"https://github.com/xavier-fernandez","followers_url":"https://api.github.com/users/xavier-fernandez/followers","following_url":"https://api.github.com/users/xavier-fernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavier-fernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavier-fernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavier-fernandez/subscriptions","organizations_url":"https://api.github.com/users/xavier-fernandez/orgs","repos_url":"https://api.github.com/users/xavier-fernandez/repos","events_url":"https://api.github.com/users/xavier-fernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavier-fernandez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xavier-fernandez/scalameta","description":"Your favourite language gets closer to bare meta.","fork":true,"url":"https://api.github.com/repos/xavier-fernandez/scalameta","forks_url":"https://api.github.com/repos/xavier-fernandez/scalameta/forks","keys_url":"https://api.github.com/repos/xavier-fernandez/scalameta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xavier-fernandez/scalameta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xavier-fernandez/scalameta/teams","hooks_url":"https://api.github.com/repos/xavier-fernandez/scalameta/hooks","issue_events_url":"https://api.github.com/repos/xavier-fernandez/scalameta/issues/events{/number}","events_url":"https://api.github.com/repos/xavier-fernandez/scalameta/events","assignees_url":"https://api.github.com/repos/xavier-fernandez/scalameta/assignees{/user}","branches_url":"https://api.github.com/repos/xavier-fernandez/scalameta/branches{/branch}","tags_url":"https://api.github.com/repos/xavier-fernandez/scalameta/tags","blobs_url":"https://api.github.com/repos/xavier-fernandez/scalameta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xavier-fernandez/scalameta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xavier-fernandez/scalameta/git/refs{/sha}","trees_url":"https://api.github.com/repos/xavier-fernandez/scalameta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xavier-fernandez/scalameta/statuses/{sha}","languages_url":"https://api.github.com/repos/xavier-fernandez/scalameta/languages","stargazers_url":"https://api.github.com/repos/xavier-fernandez/scalameta/stargazers","contributors_url":"https://api.github.com/repos/xavier-fernandez/scalameta/contributors","subscribers_url":"https://api.github.com/repos/xavier-fernandez/scalameta/subscribers","subscription_url":"https://api.github.com/repos/xavier-fernandez/scalameta/subscription","commits_url":"https://api.github.com/repos/xavier-fernandez/scalameta/commits{/sha}","git_commits_url":"https://api.github.com/repos/xavier-fernandez/scalameta/git/commits{/sha}","comments_url":"https://api.github.com/repos/xavier-fernandez/scalameta/comments{/number}","issue_comment_url":"https://api.github.com/repos/xavier-fernandez/scalameta/issues/comments{/number}","contents_url":"https://api.github.com/repos/xavier-fernandez/scalameta/contents/{+path}","compare_url":"https://api.github.com/repos/xavier-fernandez/scalameta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xavier-fernandez/scalameta/merges","archive_url":"https://api.github.com/repos/xavier-fernandez/scalameta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xavier-fernandez/scalameta/downloads","issues_url":"https://api.github.com/repos/xavier-fernandez/scalameta/issues{/number}","pulls_url":"https://api.github.com/repos/xavier-fernandez/scalameta/pulls{/number}","milestones_url":"https://api.github.com/repos/xavier-fernandez/scalameta/milestones{/number}","notifications_url":"https://api.github.com/repos/xavier-fernandez/scalameta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xavier-fernandez/scalameta/labels{/name}","releases_url":"https://api.github.com/repos/xavier-fernandez/scalameta/releases{/id}","deployments_url":"https://api.github.com/repos/xavier-fernandez/scalameta/deployments","created_at":"2017-01-30T08:09:28Z","updated_at":"2017-01-30T08:09:30Z","pushed_at":"2017-02-06T12:14:44Z","git_url":"git://github.com/xavier-fernandez/scalameta.git","ssh_url":"git@github.com:xavier-fernandez/scalameta.git","clone_url":"https://github.com/xavier-fernandez/scalameta.git","svn_url":"https://github.com/xavier-fernandez/scalameta","homepage":"http://scalameta.org","size":7705,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scalameta:master","ref":"master","sha":"a8dce21775e380256564d5afa2778005c354deba","user":{"login":"scalameta","id":7526438,"avatar_url":"https://avatars.githubusercontent.com/u/7526438?v=3","gravatar_id":"","url":"https://api.github.com/users/scalameta","html_url":"https://github.com/scalameta","followers_url":"https://api.github.com/users/scalameta/followers","following_url":"https://api.github.com/users/scalameta/following{/other_user}","gists_url":"https://api.github.com/users/scalameta/gists{/gist_id}","starred_url":"https://api.github.com/users/scalameta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalameta/subscriptions","organizations_url":"https://api.github.com/users/scalameta/orgs","repos_url":"https://api.github.com/users/scalameta/repos","events_url":"https://api.github.com/users/scalameta/events{/privacy}","received_events_url":"https://api.github.com/users/scalameta/received_events","type":"Organization","site_admin":false},"repo":{"id":20903383,"name":"scalameta","full_name":"scalameta/scalameta","owner":{"login":"scalameta","id":7526438,"avatar_url":"https://avatars.githubusercontent.com/u/7526438?v=3","gravatar_id":"","url":"https://api.github.com/users/scalameta","html_url":"https://github.com/scalameta","followers_url":"https://api.github.com/users/scalameta/followers","following_url":"https://api.github.com/users/scalameta/following{/other_user}","gists_url":"https://api.github.com/users/scalameta/gists{/gist_id}","starred_url":"https://api.github.com/users/scalameta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalameta/subscriptions","organizations_url":"https://api.github.com/users/scalameta/orgs","repos_url":"https://api.github.com/users/scalameta/repos","events_url":"https://api.github.com/users/scalameta/events{/privacy}","received_events_url":"https://api.github.com/users/scalameta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scalameta/scalameta","description":"Your favourite language gets closer to bare meta.","fork":false,"url":"https://api.github.com/repos/scalameta/scalameta","forks_url":"https://api.github.com/repos/scalameta/scalameta/forks","keys_url":"https://api.github.com/repos/scalameta/scalameta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scalameta/scalameta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scalameta/scalameta/teams","hooks_url":"https://api.github.com/repos/scalameta/scalameta/hooks","issue_events_url":"https://api.github.com/repos/scalameta/scalameta/issues/events{/number}","events_url":"https://api.github.com/repos/scalameta/scalameta/events","assignees_url":"https://api.github.com/repos/scalameta/scalameta/assignees{/user}","branches_url":"https://api.github.com/repos/scalameta/scalameta/branches{/branch}","tags_url":"https://api.github.com/repos/scalameta/scalameta/tags","blobs_url":"https://api.github.com/repos/scalameta/scalameta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scalameta/scalameta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scalameta/scalameta/git/refs{/sha}","trees_url":"https://api.github.com/repos/scalameta/scalameta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scalameta/scalameta/statuses/{sha}","languages_url":"https://api.github.com/repos/scalameta/scalameta/languages","stargazers_url":"https://api.github.com/repos/scalameta/scalameta/stargazers","contributors_url":"https://api.github.com/repos/scalameta/scalameta/contributors","subscribers_url":"https://api.github.com/repos/scalameta/scalameta/subscribers","subscription_url":"https://api.github.com/repos/scalameta/scalameta/subscription","commits_url":"https://api.github.com/repos/scalameta/scalameta/commits{/sha}","git_commits_url":"https://api.github.com/repos/scalameta/scalameta/git/commits{/sha}","comments_url":"https://api.github.com/repos/scalameta/scalameta/comments{/number}","issue_comment_url":"https://api.github.com/repos/scalameta/scalameta/issues/comments{/number}","contents_url":"https://api.github.com/repos/scalameta/scalameta/contents/{+path}","compare_url":"https://api.github.com/repos/scalameta/scalameta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scalameta/scalameta/merges","archive_url":"https://api.github.com/repos/scalameta/scalameta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scalameta/scalameta/downloads","issues_url":"https://api.github.com/repos/scalameta/scalameta/issues{/number}","pulls_url":"https://api.github.com/repos/scalameta/scalameta/pulls{/number}","milestones_url":"https://api.github.com/repos/scalameta/scalameta/milestones{/number}","notifications_url":"https://api.github.com/repos/scalameta/scalameta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scalameta/scalameta/labels{/name}","releases_url":"https://api.github.com/repos/scalameta/scalameta/releases{/id}","deployments_url":"https://api.github.com/repos/scalameta/scalameta/deployments","created_at":"2014-06-16T23:00:32Z","updated_at":"2017-02-04T19:57:08Z","pushed_at":"2017-02-06T14:15:47Z","git_url":"git://github.com/scalameta/scalameta.git","ssh_url":"git@github.com:scalameta/scalameta.git","clone_url":"https://github.com/scalameta/scalameta.git","svn_url":"https://github.com/scalameta/scalameta","homepage":"http://scalameta.org","size":7786,"stargazers_count":392,"watchers_count":392,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":105,"forks":64,"open_issues":105,"watchers":392,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/640"},"html":{"href":"https://github.com/scalameta/scalameta/pull/640"},"issue":{"href":"https://api.github.com/repos/scalameta/scalameta/issues/640"},"comments":{"href":"https://api.github.com/repos/scalameta/scalameta/issues/640/comments"},"review_comments":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/640/comments"},"review_comment":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scalameta/scalameta/pulls/640/commits"},"statuses":{"href":"https://api.github.com/repos/scalameta/scalameta/statuses/75909898d635d59080a61eec3987884394730572"}}}}
{"actor":{"display_login":"xavier-fernandez"}}