Index: tests/compiler/dart2js/metadata_test.dart |
diff --git a/tests/compiler/dart2js/metadata_test.dart b/tests/compiler/dart2js/metadata_test.dart |
index df35845a0e3098ff23fdeb10c8ab0166d6bc30dd..79a0595d5095170ab6af6fd6175f3f8198ea2c18 100644 |
--- a/tests/compiler/dart2js/metadata_test.dart |
+++ b/tests/compiler/dart2js/metadata_test.dart |
@@ -44,7 +44,8 @@ void checkAnnotation(String name, String declaration, |
MetadataAnnotation annotation2 = element.metadata.tail.head; |
annotation1.ensureResolved(compiler); |
annotation2.ensureResolved(compiler); |
- Expect.isTrue(annotation1 !== annotation2, 'expected unique instances'); |
+ Expect.isFalse(identical(annotation1, annotation2), |
+ 'expected unique instances'); |
Expect.notEquals(annotation1, annotation2, 'expected unequal instances'); |
Constant value1 = annotation1.value; |
Constant value2 = annotation2.value; |
@@ -97,7 +98,8 @@ void checkAnnotation(String name, String declaration, |
MetadataAnnotation annotation2 = element.metadata.tail.head; |
annotation1.ensureResolved(compiler); |
annotation2.ensureResolved(compiler); |
- Expect.isTrue(annotation1 !== annotation2, 'expected unique instances'); |
+ Expect.isFalse(identical(annotation1, annotation2), |
+ 'expected unique instances'); |
Expect.notEquals(annotation1, annotation2, 'expected unequal instances'); |
Constant value1 = annotation1.value; |
Constant value2 = annotation2.value; |