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

Unified Diff: tests/language/const_constructor_test.dart

Issue 10969033: Make dartc happy. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_constructor_test.dart
===================================================================
--- tests/language/const_constructor_test.dart (revision 12697)
+++ tests/language/const_constructor_test.dart (working copy)
@@ -4,12 +4,12 @@
class A<T> {
final int x;
- const A.x() : x = 42;
- A();
+ const A.named() : x = 42;
+ A() : x = null;
}
main() {
- Expect.equals(42, (const A<int>.x()).x);
- Expect.equals(42, (new A<int>.x()).x);
+ Expect.equals(42, (const A<int>.named()).x);
+ Expect.equals(42, (new A<int>.named()).x);
const A<int>(); /// 01: compile-time error
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698