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

Side by Side Diff: tests/language/src/ClassOverrideNegativeTest.dart

Issue 8319020: Verify method overrides in checked mode only (fix issue 69). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Check fail because incompatible overriding method 4
5 // Test fails in checked mode because incompatible overriding method
6 // VMOptions=--enable_type_checks
5 7
6 class A { 8 class A {
7 foo() {} 9 foo() {}
8 } 10 }
9 11
10 class B extends A { 12 class B extends A {
11 foo(a) { } 13 foo(a) { }
12 } 14 }
13 15
14 class ClassOverrideNegativeTest { 16 class ClassOverrideNegativeTest {
15 static testMain() { 17 static testMain() {
16 } 18 }
17 } 19 }
18 20
19 main() { 21 main() {
20 ClassOverrideNegativeTest.testMain(); 22 ClassOverrideNegativeTest.testMain();
21 } 23 }
OLDNEW
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698