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

Unified Diff: test/codegen/language/inferrer_synthesized_constructor_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
« no previous file with comments | « test/codegen/expect/unittest/unittest.js ('k') | test/codegen/language/issue12284_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/language/inferrer_synthesized_constructor_test.dart
diff --git a/test/codegen/language/inferrer_synthesized_constructor_test.dart b/test/codegen/language/inferrer_synthesized_constructor_test.dart
index aa6c52bdbee64a46587ecc0a981bd74cb70a7481..b4bb5dbed8b4066a7fa700ebcd861c3d16a00daf 100644
--- a/test/codegen/language/inferrer_synthesized_constructor_test.dart
+++ b/test/codegen/language/inferrer_synthesized_constructor_test.dart
@@ -22,6 +22,9 @@ main() {
// used to only see this call and consider the [A.x] field to always
// be int.
Expect.equals(84, new A(42).x + 42);
+ // 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 B().x + 42,
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError);
}
« no previous file with comments | « test/codegen/expect/unittest/unittest.js ('k') | test/codegen/language/issue12284_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698