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

Unified Diff: tests/language/regress_18713_test.dart

Issue 2302173003: Dynamicize some mixin type tests (Closed)
Patch Set: Created 4 years, 3 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/language/mixin_regress_13688_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_18713_test.dart
diff --git a/tests/language/regress_18713_test.dart b/tests/language/regress_18713_test.dart
index b0d87360f55db09a1be350712ddcc3d810397fc1..7e9f32bd29c1bad114ae00ae8b3e7da44e25daed 100644
--- a/tests/language/regress_18713_test.dart
+++ b/tests/language/regress_18713_test.dart
@@ -16,10 +16,19 @@ class S<Y> {
class TS<A, B> = T<A> with S<B>;
+@NoInline() @AssumeDynamic()
+dyn(x) => x;
+
main() {
var ts = new TS<int, String>();
+
Expect.equals("String", ts.sType.toString());
Expect.equals("int", ts.tType.toString());
Expect.equals("String", ts.getSType.toString());
Expect.equals("int", ts.getTType.toString());
+
+ Expect.equals("String", dyn(ts).sType.toString());
+ Expect.equals("int", dyn(ts).tType.toString());
+ Expect.equals("String", dyn(ts).getSType.toString());
+ Expect.equals("int", dyn(ts).getTType.toString());
}
« no previous file with comments | « tests/language/mixin_regress_13688_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698