{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/23625","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/23625/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/23625/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/23625/events","html_url":"https://github.com/dart-lang/sdk/issues/23625","id":87562108,"number":23625,"title":"crash when using @MirrorsUsed","user":{"login":"sigmundch","id":2049220,"avatar_url":"https://avatars.githubusercontent.com/u/2049220?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmundch","html_url":"https://github.com/sigmundch","followers_url":"https://api.github.com/users/sigmundch/followers","following_url":"https://api.github.com/users/sigmundch/following{/other_user}","gists_url":"https://api.github.com/users/sigmundch/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmundch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmundch/subscriptions","organizations_url":"https://api.github.com/users/sigmundch/orgs","repos_url":"https://api.github.com/users/sigmundch/repos","events_url":"https://api.github.com/users/sigmundch/events{/privacy}","received_events_url":"https://api.github.com/users/sigmundch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Dart2JS","name":"Area-Dart2JS","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-12T01:03:26Z","updated_at":"2015-06-12T17:41:59Z","closed_at":null,"body":"Here is a simplified example:\r\n\r\n```dart\r\nimport 'package:di/di.dart';\r\n\r\n@MirrorsUsed(targets: const [Base], override: '*')\r\nimport 'dart:mirrors';\r\n\r\nclass I implements Injectable {\r\n  final Function module;\r\n  const I({this.module});\r\n}\r\n\r\nclass Base {}\r\n\r\n@I(module: M.foo)\r\nclass M extends Base {\r\n  static void foo(_) {}\r\n}\r\n\r\nmain() {\r\n  new ModuleInjector([new Module()]).get(M);\r\n}\r\n```\r\n\r\nthis produces this error:\r\n```\r\ntest.dart:16:19:\r\nInternal Error: The compiler crashed when compiling this element.\r\n      static void foo(_) {}\r\n                  ^^^\r\nThe compiler is broken.\r\n\r\nWhen compiling the above element, the compiler crashed. It is not\r\npossible to tell if this is caused by a problem in your program or\r\nnot. Regardless, the compiler should not crash.\r\n\r\nThe Dart team would greatly appreciate if you would take a moment to\r\nreport this problem at http://dartbug.com/new.\r\n\r\nPlease include the following information:\r\n\r\n* the name and version of your operating system,\r\n\r\n* the Dart SDK build number (build number could not be determined), and\r\n\r\n* the entire message you see here (including the full stack trace\r\n  below as well as the source location above).\r\n\r\nThe compiler crashed: The null object does not have a getter 'isParameter'.\r\n\r\nNoSuchMethodError: method not found: 'isParameter'\r\nReceiver: null\r\nArguments: []\r\n#0      Object._noSuchMethod (dart:core-patch/object_patch.dart:42)\r\n#1      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)\r\n#2      ClosureTranslator.visitFunctionExpression .../compiler/lib/src/closure.dart:1062:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/111570715","html_url":"https://github.com/dart-lang/sdk/issues/23625#issuecomment-111570715","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/23625","id":111570715,"user":{"login":"sigmundch","id":2049220,"avatar_url":"https://avatars.githubusercontent.com/u/2049220?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmundch","html_url":"https://github.com/sigmundch","followers_url":"https://api.github.com/users/sigmundch/followers","following_url":"https://api.github.com/users/sigmundch/following{/other_user}","gists_url":"https://api.github.com/users/sigmundch/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmundch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmundch/subscriptions","organizations_url":"https://api.github.com/users/sigmundch/orgs","repos_url":"https://api.github.com/users/sigmundch/repos","events_url":"https://api.github.com/users/sigmundch/events{/privacy}","received_events_url":"https://api.github.com/users/sigmundch/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T17:41:59Z","updated_at":"2015-06-12T17:41:59Z","body":"before I jump in and investigate, @floitschG let me know if you have any hunches or clues for possible causes for this."}}