Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: tests/compiler/dart2js/union_type_test.dart

Issue 2622583004: Use entities in all masks. (Closed)
Patch Set: Update comment. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/union_type_test.dart
diff --git a/tests/compiler/dart2js/union_type_test.dart b/tests/compiler/dart2js/union_type_test.dart
index 243a066f8669a1dcb5c80688c258e0ccd5205635..28edfa5d609dbd16f8ad958b9f6c24ada40a6fdb 100644
--- a/tests/compiler/dart2js/union_type_test.dart
+++ b/tests/compiler/dart2js/union_type_test.dart
@@ -24,8 +24,8 @@ main() {
useMockCompiler: false);
env.compiler.closeResolution();
ClosedWorld world = env.closedWorld;
- FlatTypeMask mask1 = new FlatTypeMask.exact(env.getElement('A'));
- FlatTypeMask mask2 = new FlatTypeMask.exact(env.getElement('B'));
+ FlatTypeMask mask1 = new FlatTypeMask.exact(env.getClass('A'));
+ FlatTypeMask mask2 = new FlatTypeMask.exact(env.getClass('B'));
UnionTypeMask union1 = mask1.nonNullable().union(mask2, world);
UnionTypeMask union2 = mask2.nonNullable().union(mask1, world);
Expect.equals(union1, union2);

Powered by Google App Engine
This is Rietveld 408576698