Index: tests/language/null_test.dart |
diff --git a/tests/language/null_test.dart b/tests/language/null_test.dart |
index 91ec237ceddc0525488772720a9911041f2ba057..06debc054e6dbdacf74dac6c58255344c495a8de 100644 |
--- a/tests/language/null_test.dart |
+++ b/tests/language/null_test.dart |
@@ -12,11 +12,11 @@ class BadInherit |
extends Null // //# 01: compile-time error |
implements Null // //# 02: compile-time error |
extends Object with Null // //# 03: compile-time error |
-{} |
+ {} |
class EqualsNotCalled { |
int get hashCode => throw "And don't warn!"; |
- bool operator ==(Object other) { |
+ bool operator==(Object other) { |
throw "SHOULD NOT GET HERE"; |
} |
} |
@@ -47,7 +47,7 @@ void main() { |
} |
void test() { |
- new BadInherit(); // Make sure class is referenced. |
+ new BadInherit(); // Make sure class is referenced. |
int foo(var obj) { |
Expect.equals(null, obj); |
@@ -62,7 +62,7 @@ void test() { |
} |
var val = 1; |
- var obj = confuse(null); // Null value that isn't known at compile-time. |
+ var obj = confuse(null); // Null value that isn't known at compile-time. |
Expect.isTrue(identical(obj, null), "identical"); |
Expect.isTrue(null == null); |
@@ -117,7 +117,7 @@ void test() { |
Expect.isTrue(obj is dynamic); |
Expect.isFalse(null is String); |
Expect.isFalse(obj is String); |
- Expect.isFalse(0 is Null); // It's only assignable. |
+ Expect.isFalse(0 is Null); // It's only assignable. |
Expect.isFalse(null is! Null); |
Expect.isFalse(obj is! Null); |
Expect.isFalse(null is! Object); |
@@ -126,7 +126,7 @@ void test() { |
Expect.isFalse(obj is! dynamic); |
Expect.isTrue(null is! String); |
Expect.isTrue(obj is! String); |
- Expect.isTrue(0 is! Null); // It's only assignable. |
+ Expect.isTrue(0 is! Null); // It's only assignable. |
// Test "is" operator with generic type variable. |
Expect.isTrue(new Generic<Null>().test(null)); |
@@ -197,6 +197,7 @@ void test() { |
Expect.throws(() => Function.apply(noSuchMethod, [mirror])); |
} |
+ |
class CaptureInvocationMirror { |
noSuchMethod(mirror) => mirror; |
} |