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

Unified Diff: tests/compiler/dart2js/simple_inferrer_global_field_closure_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_global_field_closure_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
index 430f46422151c444d8236dfddc8d0a4065693187..80674f18e6ef26f8237a19b4f0857d154a861a36 100644
--- a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
@@ -42,10 +42,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('method1', closedWorld.commonMasks.uint31Type);

Powered by Google App Engine
This is Rietveld 408576698