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

Unified Diff: tests/language/class_literal_test.dart

Issue 11049038: Change compile-time errors into dynamic errors in instance creation expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/call_nonexistent_constructor_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/class_literal_test.dart
===================================================================
--- tests/language/class_literal_test.dart (revision 13204)
+++ tests/language/class_literal_test.dart (working copy)
@@ -14,20 +14,20 @@
if (false) {
Class; /// 01: compile-time error
Class(); /// 02: compile-time error
- Class.method(); /// 03: compile-time error
- Class.field; /// 04: compile-time error
+ Class.method(); /// 03: static type warning
+ Class.field; /// 04: static type warning
Class[0]; /// 05: compile-time error
var x = Class; /// 06: compile-time error
var x = Class(); /// 07: compile-time error
- var x = Class.method(); /// 08: compile-time error
- var x = Class.field; /// 09: compile-time error
+ var x = Class.method(); /// 08: static type warning
+ var x = Class.field; /// 09: static type warning
var x = Class[0]; /// 10: compile-time error
var x = Class[0].field; /// 11: compile-time error
var x = Class[0].method(); /// 12: compile-time error
foo(Class); /// 13: compile-time error
foo(Class()); /// 14: compile-time error
- foo(Class.method()); /// 15: compile-time error
- foo(Class.field); /// 16: compile-time error
+ foo(Class.method()); /// 15: static type warning
+ foo(Class.field); /// 16: static type warning
foo(Class[0]); /// 17: compile-time error
foo(Class[0].field); /// 18: compile-time error
foo(Class[0].method()); /// 19: compile-time error
« no previous file with comments | « tests/language/call_nonexistent_constructor_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698