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

Unified Diff: test/codegen/language/type_literal_test.dart

Issue 1945113003: Better is/as check handling. With this CL, the subtype function in (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Update new tests after rebase Created 4 years, 7 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 | « test/browser/runtime_tests.js ('k') | tool/input_sdk/private/ddc_runtime/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/language/type_literal_test.dart
diff --git a/test/codegen/language/type_literal_test.dart b/test/codegen/language/type_literal_test.dart
index d0bba5d6f07c2fbf32254687cb494240af029b05..4260696f7c09baded2f5c43e2bac01887fc2848d 100644
--- a/test/codegen/language/type_literal_test.dart
+++ b/test/codegen/language/type_literal_test.dart
@@ -42,12 +42,12 @@ main() {
testType(new Box<Box<Foo>>().typeArg, "Box<Foo>");
// Typedef.
- testType(Func, "Func");
- testType(GenericFunc, "GenericFunc");
+ testType(Func, "Func((bool) -> int)");
+ testType(GenericFunc, "GenericFunc((bottom) -> int)");
// TODO(rnystrom): This should print "GenericFunc<int>", but that isn't
// implemented yet.
- testType(new Box<GenericFunc<int>>().typeArg, "GenericFunc");
+ testType(new Box<GenericFunc<int>>().typeArg, "GenericFunc((int) -> int)");
// Literals are canonicalized.
Expect.identical(Foo, Foo);
« no previous file with comments | « test/browser/runtime_tests.js ('k') | tool/input_sdk/private/ddc_runtime/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698