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

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

Issue 52263003: Implement least upper bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month 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_promotion_test.dart ('k') | tests/compiler/dart2js/warnings_checker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « tests/compiler/dart2js/type_promotion_test.dart ('k') | tests/compiler/dart2js/warnings_checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698