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

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

Issue 2613833005: Use entities in the TypeMask interface. (Closed)
Patch Set: dartfmt 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/simple_inferrer_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_test.dart b/tests/compiler/dart2js/simple_inferrer_test.dart
index fb5467451209ebe7f0b96eeb3285968d9b6df0ec..f3dbf3e174a9c98a796c2db9490c783d443895da 100644
--- a/tests/compiler/dart2js/simple_inferrer_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_test.dart
@@ -872,10 +872,9 @@ void main() {
checkFactoryConstructor('A', '');
checkReturn('testCascade1', commonMasks.growableListType);
- checkReturn(
- 'testCascade2',
- new TypeMask.nonNullExact(
- findElement(compiler, 'CascadeHelper'), closedWorld));
+ ClassElement clsCascadeHelper = findElement(compiler, 'CascadeHelper');
+ checkReturn('testCascade2',
+ new TypeMask.nonNullExact(clsCascadeHelper, closedWorld));
checkReturn('testSpecialization1', commonMasks.numType);
checkReturn('testSpecialization2', commonMasks.dynamicType);
checkReturn('testSpecialization3', commonMasks.uint31Type.nullable());

Powered by Google App Engine
This is Rietveld 408576698