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

Unified Diff: tests/compiler/dart2js_extra/16407_test.dart

Issue 146873004: Test for Issue 16407 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/16407_test.dart
diff --git a/tests/language/call_type_literal_test.dart b/tests/compiler/dart2js_extra/16407_test.dart
similarity index 64%
copy from tests/language/call_type_literal_test.dart
copy to tests/compiler/dart2js_extra/16407_test.dart
index d24e778d445092d8950d97e38932784f5bcbcf0b..5f59ffc7f643648ab1a2d7c70800560ec0763207 100644
--- a/tests/language/call_type_literal_test.dart
+++ b/tests/compiler/dart2js_extra/16407_test.dart
@@ -4,8 +4,13 @@
import "package:expect/expect.dart";
-class C { void a() {} }
+// Regression test for Issue 16407.
void main() {
- Expect.throws(() => C().a(), (e) => e is NoSuchMethodError); /// 01: static type warning
+ foo(null, true);
+ foo('x', false);
}
+
+var foo = (x, result) {
+ Expect.equals(result, x is Null, '$x is Null');
+};
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698