{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/32946","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/32946/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/32946/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/32946/events","html_url":"https://github.com/dart-lang/sdk/issues/32946","id":316732714,"number":32946,"title":"Parse error for generic method with dynamic and dart:core imported with prefix","user":{"login":"jakobr-google","id":20046617,"avatar_url":"https://avatars3.githubusercontent.com/u/20046617?v=4","gravatar_id":"","url":"https://api.github.com/users/jakobr-google","html_url":"https://github.com/jakobr-google","followers_url":"https://api.github.com/users/jakobr-google/followers","following_url":"https://api.github.com/users/jakobr-google/following{/other_user}","gists_url":"https://api.github.com/users/jakobr-google/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobr-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobr-google/subscriptions","organizations_url":"https://api.github.com/users/jakobr-google/orgs","repos_url":"https://api.github.com/users/jakobr-google/repos","events_url":"https://api.github.com/users/jakobr-google/events{/privacy}","received_events_url":"https://api.github.com/users/jakobr-google/received_events","type":"User","site_admin":false},"labels":[{"id":219928193,"url":"https://api.github.com/repos/dart-lang/sdk/labels/Resolution:%20duplicate","name":"Resolution: duplicate","color":"8d8d8d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-23T09:31:08Z","updated_at":"2018-04-23T13:15:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Dart VM version: 2.0.0-dev.49.0 (Wed Apr 18 20:41:36 2018 +0200) on \"linux_x64\"\r\n\r\nThis program throws a bunch of parse errors when run with `--preview-dart-2`:\r\n\r\n```dart\r\nimport 'dart:core' as core;\r\n\r\nvoid main() {\r\n  final foo = {\"a\": \"b\"};\r\n\r\n  final map = foo.cast<core.String, core.dynamic>();\r\n\r\n  core.print(map.length);\r\n}\r\n```\r\n\r\nThe program works fine if I don't import dart:core with a prefix, or if I change `core.dynamic` to `core.String`.\r\n\r\nYes, this is a stripped-down example."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/383571001","html_url":"https://github.com/dart-lang/sdk/issues/32946#issuecomment-383571001","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/32946","id":383571001,"user":{"login":"jakobr-google","id":20046617,"avatar_url":"https://avatars3.githubusercontent.com/u/20046617?v=4","gravatar_id":"","url":"https://api.github.com/users/jakobr-google","html_url":"https://github.com/jakobr-google","followers_url":"https://api.github.com/users/jakobr-google/followers","following_url":"https://api.github.com/users/jakobr-google/following{/other_user}","gists_url":"https://api.github.com/users/jakobr-google/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobr-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobr-google/subscriptions","organizations_url":"https://api.github.com/users/jakobr-google/orgs","repos_url":"https://api.github.com/users/jakobr-google/repos","events_url":"https://api.github.com/users/jakobr-google/events{/privacy}","received_events_url":"https://api.github.com/users/jakobr-google/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T13:15:55Z","updated_at":"2018-04-23T13:15:55Z","author_association":"CONTRIBUTOR","body":"Are you sure this is the same issue? The VM seems to handle `core.dynamic` just fine, *except* when it's used like this in a generic method call."}}
{"actor":{"display_login":"jakobr-google"}}