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

Unified Diff: tests/language/function_literals2_test.dart

Issue 10905109: Add named constructor name checking (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
Index: tests/language/function_literals2_test.dart
===================================================================
--- tests/language/function_literals2_test.dart (revision 11907)
+++ tests/language/function_literals2_test.dart (working copy)
@@ -40,7 +40,7 @@
Expect.equals(10, b.n);
Expect.equals(100, (b.f)(10));
- b = new B.n(10);
+ b = new B.withZ(10);
Expect.equals(10, b.n);
Expect.equals(101, (b.f)(10));
@@ -68,7 +68,7 @@
var f;
int n;
B(z) : f = ((x) => x * x) { n = z; }
- B.n(z) : f = ((x) { return x * x + 1; }) { n = z; }
+ B.withZ(z) : f = ((x) { return x * x + 1; }) { n = z; }
}
main() {
« tests/language/bad_constructor_test.dart ('K') | « tests/language/bad_constructor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698