Index: tests/language_strong/instance_method2_negative_test.dart |
diff --git a/tests/language_strong/instance_method2_negative_test.dart b/tests/language_strong/instance_method2_negative_test.dart |
index 756dcf6520cabdd33db60fab6b4cc2fb17bd849b..c0243bf948ddcac50d0267c1d3158e7d91a8f15a 100644 |
--- a/tests/language_strong/instance_method2_negative_test.dart |
+++ b/tests/language_strong/instance_method2_negative_test.dart |
@@ -5,13 +5,13 @@ |
// Dart test to check that we correctly flag the use of an |
// instance method (as a closure) from a static method. |
- |
class Goofy { |
String instMethod() { |
return "woof"; |
} |
+ |
static Function bark() { |
- return instMethod; // Should get error here. |
+ return instMethod; // Should get error here. |
} |
} |
@@ -21,7 +21,6 @@ class InstanceMethod2NegativeTest { |
} |
} |
- |
main() { |
InstanceMethod2NegativeTest.testMain(); |
} |