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

Unified Diff: tests/language/throw_expr_test.dart

Issue 14756007: Fix issue 10487 by adapting the type checker so it uses the dynamic type for throw expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/throw_expr_test.dart
diff --git a/tests/language/throw_expr_test.dart b/tests/language/throw_expr_test.dart
index f844771b727e12d4ce63ebb65a77260af81e68fe..253e7ccbf281e4c3ab74dff78ce2151b8543db78 100644
--- a/tests/language/throw_expr_test.dart
+++ b/tests/language/throw_expr_test.dart
@@ -48,6 +48,7 @@ bar(x, y) => throw "foo" "${throw x}";
class Q {
var qqq;
f(x) { qqq = x; }
+ Q get nono => throw "nono";
}
void test3() {
@@ -91,8 +92,14 @@ void test3() {
}
}
+void test4() {
+ var q = new Q();
+ Expect.throws(() => q.nono, (e) => e == "nono");
+}
+
main() {
test1();
test2();
test3();
+ test4();
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698