Index: tests/lib/mirrors/mirrors_nsm_mismatch_test.dart |
diff --git a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart |
index 5c63ca1dfc266914a28c9668bd1db9bb05ab043c..9b92458a46e5e3603b7ee6845ddf46864d8e4d2a 100644 |
--- a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart |
+++ b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart |
@@ -2,8 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library test.mirrors_nsm_mistatch; |
+library test.mirrors_nsm_mismatch; |
+@MirrorsUsed(targets: "test.mirrors_nsm_mismatch") |
import 'dart:mirrors'; |
import 'mirrors_nsm_test.dart'; |
@@ -17,7 +18,7 @@ class C { |
main() { |
var mirrors = currentMirrorSystem(); |
- var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mistatch); |
+ var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mismatch); |
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, [], {#extra: 1}), |
() => topLevelMethod(extra: 1)); |
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, ['positional']), |