{"action":"created","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/4732","repository_url":"https://api.github.com/repos/lampepfl/dotty","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/4732/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/4732/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/4732/events","html_url":"https://github.com/lampepfl/dotty/issues/4732","id":336308768,"node_id":"MDU6SXNzdWUzMzYzMDg3Njg=","number":4732,"title":"Failing to resolve to correct StringContext","user":{"login":"allanrenucci","id":4996324,"node_id":"MDQ6VXNlcjQ5OTYzMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4996324?v=4","gravatar_id":"","url":"https://api.github.com/users/allanrenucci","html_url":"https://github.com/allanrenucci","followers_url":"https://api.github.com/users/allanrenucci/followers","following_url":"https://api.github.com/users/allanrenucci/following{/other_user}","gists_url":"https://api.github.com/users/allanrenucci/gists{/gist_id}","starred_url":"https://api.github.com/users/allanrenucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanrenucci/subscriptions","organizations_url":"https://api.github.com/users/allanrenucci/orgs","repos_url":"https://api.github.com/users/allanrenucci/repos","events_url":"https://api.github.com/users/allanrenucci/events{/privacy}","received_events_url":"https://api.github.com/users/allanrenucci/received_events","type":"User","site_admin":false},"labels":[{"id":931687290,"node_id":"MDU6TGFiZWw5MzE2ODcyOTA=","url":"https://api.github.com/repos/lampepfl/dotty/labels/area:desugar","name":"area:desugar","color":"006b75","default":false},{"id":159371900,"node_id":"MDU6TGFiZWwxNTkzNzE5MDA=","url":"https://api.github.com/repos/lampepfl/dotty/labels/help%20wanted","name":"help wanted","color":"c2e0c6","default":true},{"id":21379537,"node_id":"MDU6TGFiZWwyMTM3OTUzNw==","url":"https://api.github.com/repos/lampepfl/dotty/labels/itype:bug","name":"itype:bug","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T16:50:04Z","updated_at":"2018-06-29T16:20:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```scala\r\nobject StringContext {\r\n  s\"Hello\"\r\n}\r\n```\r\nfails to compile with Dotty and Scalac:\r\n```scala\r\n-- [E050] Reference Error: tests/allan/Test.scala:49:3 -------------------------\r\n49 |  s\"Hello\"\r\n   |   ^\r\n   |   object StringContext does not take parameters\r\n```\r\n\r\nThis is because the code snippet desugars to\r\n```scala\r\nStringContext(\"Hello\").s()\r\n```\r\n\r\nIs this on purpose? An easy fix would be to desugar to `scala.StringContext(\"Hello\").s()`"},"comment":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/comments/401403966","html_url":"https://github.com/lampepfl/dotty/issues/4732#issuecomment-401403966","issue_url":"https://api.github.com/repos/lampepfl/dotty/issues/4732","id":401403966,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTQwMzk2Ng==","user":{"login":"smarter","id":63430,"node_id":"MDQ6VXNlcjYzNDMw","avatar_url":"https://avatars2.githubusercontent.com/u/63430?v=4","gravatar_id":"","url":"https://api.github.com/users/smarter","html_url":"https://github.com/smarter","followers_url":"https://api.github.com/users/smarter/followers","following_url":"https://api.github.com/users/smarter/following{/other_user}","gists_url":"https://api.github.com/users/smarter/gists{/gist_id}","starred_url":"https://api.github.com/users/smarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarter/subscriptions","organizations_url":"https://api.github.com/users/smarter/orgs","repos_url":"https://api.github.com/users/smarter/repos","events_url":"https://api.github.com/users/smarter/events{/privacy}","received_events_url":"https://api.github.com/users/smarter/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T16:20:35Z","updated_at":"2018-06-29T16:20:35Z","author_association":"MEMBER","body":"This is intentional in scalac, but I agree that it's not a feature worth preserving: https://github.com/scala/scala/blob/2.13.x/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala#L1374-L1376"}}
{"actor":{"display_login":"smarter"}}