{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/23612","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/23612/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/23612/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/23612/events","html_url":"https://github.com/dart-lang/sdk/issues/23612","id":86432848,"number":23612,"title":"VM fails to give compile-time error when prefix not followed by '.'","user":{"login":"stereotype441","id":306375,"avatar_url":"https://avatars.githubusercontent.com/u/306375?v=3","gravatar_id":"","url":"https://api.github.com/users/stereotype441","html_url":"https://github.com/stereotype441","followers_url":"https://api.github.com/users/stereotype441/followers","following_url":"https://api.github.com/users/stereotype441/following{/other_user}","gists_url":"https://api.github.com/users/stereotype441/gists{/gist_id}","starred_url":"https://api.github.com/users/stereotype441/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereotype441/subscriptions","organizations_url":"https://api.github.com/users/stereotype441/orgs","repos_url":"https://api.github.com/users/stereotype441/repos","events_url":"https://api.github.com/users/stereotype441/events{/privacy}","received_events_url":"https://api.github.com/users/stereotype441/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-language","name":"area-language","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-vm","name":"area-vm","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"mhausner","id":8368434,"avatar_url":"https://avatars.githubusercontent.com/u/8368434?v=3","gravatar_id":"","url":"https://api.github.com/users/mhausner","html_url":"https://github.com/mhausner","followers_url":"https://api.github.com/users/mhausner/followers","following_url":"https://api.github.com/users/mhausner/following{/other_user}","gists_url":"https://api.github.com/users/mhausner/gists{/gist_id}","starred_url":"https://api.github.com/users/mhausner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhausner/subscriptions","organizations_url":"https://api.github.com/users/mhausner/orgs","repos_url":"https://api.github.com/users/mhausner/repos","events_url":"https://api.github.com/users/mhausner/events{/privacy}","received_events_url":"https://api.github.com/users/mhausner/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-09T03:52:45Z","updated_at":"2016-01-07T17:23:40Z","closed_at":null,"body":"Section 16.32 (Identifier Reference) of the spec contains the following text:\r\n\r\nEvaluation of an identifier expression e of the form id proceeds as follows:\r\nLet d be the innermost declaration in the enclosing lexical scope whose name is id or id=.  If no such declaration exists in the lexical scope, let d be the declaration of the inherited member named id if it exists.\r\n- If d is a prefix p, a compile-time error occurs unless the token immediately following d is '.'.\r\n\r\nThe VM does not correctly produce this compile-time error.  I will follow up with a CL containing tests that reproduce the problem.\r\n\r\nNote, however, that there are two exceptions in which no compile-time error should be produced: if the prefix appears on the left side of a normal (non-compound) assignment, or to the left of an opening paren, then it is treated as though it were followed by `this.`.  In other words:\r\n\r\n    import '...' as p;\r\n    class Base {\r\n      var p;\r\n    }\r\n    class Derived extends Base {\r\n      f() {\r\n        p = () {}; // Treated as: this.p = () {}\r\n        p(); // Treated as: this.p();\r\n      }\r\n    }\r\n    main() {\r\n      new Derived().f();\r\n    }\r\n\r\nThe VM handles these two exceptions correctly."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/169742621","html_url":"https://github.com/dart-lang/sdk/issues/23612#issuecomment-169742621","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/23612","id":169742621,"user":{"login":"mhausner","id":8368434,"avatar_url":"https://avatars.githubusercontent.com/u/8368434?v=3","gravatar_id":"","url":"https://api.github.com/users/mhausner","html_url":"https://github.com/mhausner","followers_url":"https://api.github.com/users/mhausner/followers","following_url":"https://api.github.com/users/mhausner/following{/other_user}","gists_url":"https://api.github.com/users/mhausner/gists{/gist_id}","starred_url":"https://api.github.com/users/mhausner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhausner/subscriptions","organizations_url":"https://api.github.com/users/mhausner/orgs","repos_url":"https://api.github.com/users/mhausner/repos","events_url":"https://api.github.com/users/mhausner/events{/privacy}","received_events_url":"https://api.github.com/users/mhausner/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T17:23:40Z","updated_at":"2016-01-07T17:23:40Z","body":"Should this be closed then or is there still an issue?"}}