{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/38090","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/38090/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/38090/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/38090/events","html_url":"https://github.com/dart-lang/sdk/issues/38090","id":486555194,"node_id":"MDU6SXNzdWU0ODY1NTUxOTQ=","number":38090,"title":"analyzer fuzz crash: cast error tearing off method with no name","user":{"login":"MichaelRFairhurst","id":1627771,"node_id":"MDQ6VXNlcjE2Mjc3NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1627771?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelRFairhurst","html_url":"https://github.com/MichaelRFairhurst","followers_url":"https://api.github.com/users/MichaelRFairhurst/followers","following_url":"https://api.github.com/users/MichaelRFairhurst/following{/other_user}","gists_url":"https://api.github.com/users/MichaelRFairhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelRFairhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelRFairhurst/subscriptions","organizations_url":"https://api.github.com/users/MichaelRFairhurst/orgs","repos_url":"https://api.github.com/users/MichaelRFairhurst/repos","events_url":"https://api.github.com/users/MichaelRFairhurst/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelRFairhurst/received_events","type":"User","site_admin":false},"labels":[{"id":219928186,"node_id":"MDU6TGFiZWwyMTk5MjgxODY=","url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8","default":false},{"id":805326370,"node_id":"MDU6TGFiZWw4MDUzMjYzNzA=","url":"https://api.github.com/repos/dart-lang/sdk/labels/crash","name":"crash","color":"b7200c","default":false},{"id":1554977774,"node_id":"MDU6TGFiZWwxNTU0OTc3Nzc0","url":"https://api.github.com/repos/dart-lang/sdk/labels/fuzz-result","name":"fuzz-result","color":"ff0000","default":false},{"id":334529063,"node_id":"MDU6TGFiZWwzMzQ1MjkwNjM=","url":"https://api.github.com/repos/dart-lang/sdk/labels/type-bug","name":"type-bug","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-28T19:01:34Z","updated_at":"2019-09-13T23:18:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```dart\r\nclass A {\r\n  var t = ;\r\n  () {}\r\n}\r\n```\r\n\r\nI think the problem here is that the synthetic initializer to `t` is resolved as a tearoff of the unnamed (due to recovery)  method `() {}`. However the default constructor is also unnamed.\r\n\r\nNote: this only fails for summary 1, making it potentially lower priority...though there's a chance this is easy enough to hit that it might be worth fixing now given it is our production summary system?\r\n\r\n```\r\n_ElementMismatchException: Element mismatch in /home/mfairhurst/dart/test/lib/test.dart at class A\r\nCaused by type 'ConstructorElementImpl' is not a subtype of type 'MethodElement' in type cast\r\n#0      MethodElementHandle.actualElement (package:analyzer/src/dart/element/handle.dart:1024:58)\r\n#1      MethodElementHandle.isStatic (package:analyzer/src/dart/element/handle.dart:1030:24)\r\n#2      _ReferenceInfo._buildType (package:analyzer/src/summary/resynthesize.dart:1137:58)\r\n#3      _ReferenceInfo.type (package:analyzer/src/summary/resynthesize.dart:976:15)\r\n#4      _ReferenceInfo.buildType (package:analyzer/src/summary/resynthesize.dart:1001:15)\r\n#5      _UnitResynthesizer.buildType (package:analyzer/src/summary/resynthesize.dart:1397:30)\r\n#6      _UnitResynthesizer.buildLinkedType (package:analyzer/src/summary/resynthesize.dart:1349:12)\r\n#7      SummaryResynthesizerContext.resolveLinkedType (package:analyzer/src/summary/resynthesize.dart:488:30)\r\n#8      NonParameterVariableElementImpl.type (package:analyzer/src/dart/element/element.dart:8342:12)\r\n#9      PropertyInducingElementImpl.type (package:analyzer/src/dart/element/element.dart:9511:18)\r\n#10     DeclarationResolver.visitVariableDeclarationList (package:analyzer/src/generated/declaration_resolver.dart:481:56)\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/531419182","html_url":"https://github.com/dart-lang/sdk/issues/38090#issuecomment-531419182","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/38090","id":531419182,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTQxOTE4Mg==","user":{"login":"MichaelRFairhurst","id":1627771,"node_id":"MDQ6VXNlcjE2Mjc3NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1627771?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelRFairhurst","html_url":"https://github.com/MichaelRFairhurst","followers_url":"https://api.github.com/users/MichaelRFairhurst/followers","following_url":"https://api.github.com/users/MichaelRFairhurst/following{/other_user}","gists_url":"https://api.github.com/users/MichaelRFairhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelRFairhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelRFairhurst/subscriptions","organizations_url":"https://api.github.com/users/MichaelRFairhurst/orgs","repos_url":"https://api.github.com/users/MichaelRFairhurst/repos","events_url":"https://api.github.com/users/MichaelRFairhurst/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelRFairhurst/received_events","type":"User","site_admin":false},"created_at":"2019-09-13T23:18:51Z","updated_at":"2019-09-13T23:18:51Z","author_association":"CONTRIBUTOR","body":"Note: this was first found a year and a half ago in #32246.\r\n\r\nThere is a comment in that issue \"it seems unlikely users would hit this,\" but users have indeed hit this one many times since (#37979 and #37580, and the duplicates linked to those two issues)"}}
{"actor":{"display_login":"MichaelRFairhurst"}}