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

Unified Diff: dart/tests/language/src/BodyLessConstructorWrongArgNegativeTest.dart

Issue 9325029: Fix for issue 1480: analyze a method even if it does not have a body, and do not try to evaluate ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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
« dart/frog/gen.dart ('K') | « dart/frog/method_data.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/src/BodyLessConstructorWrongArgNegativeTest.dart
===================================================================
--- dart/tests/language/src/BodyLessConstructorWrongArgNegativeTest.dart (revision 0)
+++ dart/tests/language/src/BodyLessConstructorWrongArgNegativeTest.dart (revision 0)
@@ -0,0 +1,16 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+main() {
+ C o = const C(1);
+}
+
+class Base {
+ final String name;
+ const Base(this.name);
+}
+
+class C extends Base {
+ const C(var x): super(); // call super construtor with wrong arg count
kasperl 2012/02/03 15:39:20 construtor -> constructor
ngeoffray 2012/02/06 11:50:31 Done.
+}
« dart/frog/gen.dart ('K') | « dart/frog/method_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698