| 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 dad50ae716cad8c27e3a02fe7d47a6770a8724b1..9c871a9696d77c2b4574332ed8c02b708e225109 100644
|
| --- a/tests/compiler/dart2js/type_substitution_test.dart
|
| +++ b/tests/compiler/dart2js/type_substitution_test.dart
|
| @@ -12,11 +12,12 @@ import 'type_test_helper.dart';
|
|
|
| DartType getType(compiler, String name) {
|
| var clazz = findElement(compiler, "Class");
|
| - clazz.ensureResolved(compiler);
|
| + clazz.ensureResolved(compiler.resolution);
|
| var element = clazz.buildScope().lookup(name);
|
| Expect.isNotNull(element);
|
| Expect.equals(element.kind, ElementKind.FUNCTION);
|
| - FunctionSignature signature = element.computeSignature(compiler);
|
| + FunctionSignature signature =
|
| + element.computeSignature(compiler.resolution);
|
|
|
| // Function signatures are used to be to provide void types (only occuring as
|
| // as return types) and (inlined) function types (only occuring as method
|
| @@ -210,7 +211,7 @@ void testTypeSubstitution() {
|
| Expect.isNotNull(Typedef2_int_String);
|
| DartType Function_int_String = getType(compiler, "Function2b");
|
| Expect.isNotNull(Function_int_String);
|
| - DartType unalias1 = Typedef2_int_String.unalias(compiler);
|
| + DartType unalias1 = Typedef2_int_String.unalias(compiler.resolution);
|
| Expect.equals(Function_int_String, unalias1,
|
| '$Typedef2_int_String.unalias=$unalias1 != $Function_int_String');
|
|
|
| @@ -218,7 +219,7 @@ void testTypeSubstitution() {
|
| Expect.isNotNull(Typedef1);
|
| DartType Function_dynamic_dynamic = getType(compiler, "Function1c");
|
| Expect.isNotNull(Function_dynamic_dynamic);
|
| - DartType unalias2 = Typedef1.unalias(compiler);
|
| + DartType unalias2 = Typedef1.unalias(compiler.resolution);
|
| Expect.equals(Function_dynamic_dynamic, unalias2,
|
| '$Typedef1.unalias=$unalias2 != $Function_dynamic_dynamic');
|
| }));
|
|
|