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

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

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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_const_closure2_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart b/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart
index c4c9194e91ffe18763191f0cb0c2dc3ff54566c4..458318b2f36fcf23c47e702611119b7dd7fd6321 100644
--- a/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart
@@ -33,10 +33,8 @@ void main() {
checkReturn(String name, type) {
var element = findElement(compiler, name);
- Expect.equals(
- type,
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler),
- name);
+ dynamic returnType = typesInferrer.getReturnTypeOfElement(element);
+ Expect.equals(type, returnType.simplify(compiler), name);
}
checkReturn('method', closedWorld.commonMasks.numType);

Powered by Google App Engine
This is Rietveld 408576698