Index: tests/compiler/dart2js/type_test_helper.dart |
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart |
index 7f2a8fd9ecbe882a1f3a74a161b653674fae95a0..d6168355375e84a827c207afba9b4f7a69eb7f1a 100644 |
--- a/tests/compiler/dart2js/type_test_helper.dart |
+++ b/tests/compiler/dart2js/type_test_helper.dart |
@@ -71,6 +71,10 @@ class TypeEnvironment { |
return compiler.types.isMoreSpecific(T, S); |
} |
+ DartType computeLeastUpperBound(DartType T, DartType S) { |
+ return compiler.types.computeLeastUpperBound(T, S); |
+ } |
+ |
FunctionType functionType(DartType returnType, |
List<DartType> parameters, |
{List<DartType> optionalParameter, |
@@ -88,7 +92,7 @@ class TypeEnvironment { |
namedParameterTypes.addLast(type); |
}); |
} |
- FunctionType type = new FunctionType( |
+ return new FunctionType( |
compiler.functionClass, |
returnType, parameterTypes, optionalParameterTypes, |
namedParameterNames.toLink(), namedParameterTypes.toLink()); |