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

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

Issue 1926283002: implement generic method runtime behavior, fixes #301 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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
Index: test/codegen/language/issue12284_test.dart
diff --git a/test/codegen/language/issue12284_test.dart b/test/codegen/language/issue12284_test.dart
index efb5883135765c3c1d50fefd07201f1c1d6a42b7..b672e40115968201645ba4010ba3266ddc680931 100644
--- a/test/codegen/language/issue12284_test.dart
+++ b/test/codegen/language/issue12284_test.dart
@@ -11,7 +11,7 @@ class A {
@DontInline()
A(param) {
// Currently defeat inlining by using a closure.
- var bar = () => 42;
+ var bar = () => 42;
field = param + 42;
}
A.redirect() : this('foo');
@@ -19,6 +19,9 @@ class A {
main() {
Expect.equals(42 + 42, new A(42).field);
+ // TODO(jmesserly): DDC throws an nSM if the argument types mismatch,
+ // instead of a TypeError.
+ // https://github.com/dart-lang/dev_compiler/issues/534
Expect.throws(() => new A.redirect(),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError);
}
« no previous file with comments | « test/codegen/language/inferrer_synthesized_constructor_test.dart ('k') | tool/input_sdk/private/ddc_runtime/classes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698