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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. 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
« no previous file with comments | « tests/compiler/dart2js/type_representation_test.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_substitution_test.dart
diff --git a/tests/compiler/dart2js/type_substitution_test.dart b/tests/compiler/dart2js/type_substitution_test.dart
index 24d4ebddfde3eb50172468e11bec38ec5820fbb7..fcdae4cdfa5c8eb67b21214e875514a64d06bc7b 100644
--- a/tests/compiler/dart2js/type_substitution_test.dart
+++ b/tests/compiler/dart2js/type_substitution_test.dart
@@ -11,9 +11,9 @@ import 'compiler_helper.dart';
import 'type_test_helper.dart';
ResolutionDartType getType(compiler, String name) {
- var clazz = findElement(compiler, "Class");
+ dynamic clazz = findElement(compiler, "Class");
clazz.ensureResolved(compiler.resolution);
- var element = clazz.buildScope().lookup(name);
+ dynamic element = clazz.buildScope().lookup(name);
Expect.isNotNull(element);
Expect.equals(element.kind, ElementKind.FUNCTION);
element.computeType(compiler.resolution);
@@ -48,8 +48,6 @@ void testAsInstanceOf() {
class E<T> extends A<A<T>> {}
class F<T, U> extends B<F<T, String>> implements A<F<B<U>, int>> {}
''').then((env) {
- var compiler = env.compiler;
-
ClassElement A = env.getElement("A");
ClassElement B = env.getElement("B");
ClassElement C = env.getElement("C");
@@ -57,7 +55,6 @@ void testAsInstanceOf() {
ClassElement E = env.getElement("E");
ClassElement F = env.getElement("F");
- ResolutionDartType numType = env['num'];
ResolutionDartType intType = env['int'];
ResolutionDartType stringType = env['String'];
« no previous file with comments | « tests/compiler/dart2js/type_representation_test.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698