0947675d6d
This technically steals a few tests from the previous batch that spans corelib and language, but I wanted to start from the top of the language tests. Removed application_test and application_negative_test because they are useless and the latter has never actually worked correctly since the day it was transliterated from the long-defunct application file syntax. R=bkonyi@google.com, whesse@google.com Review-Url: https://codereview.chromium.org/2984443003 .
21 lines
466 B
Dart
21 lines
466 B
Dart
// 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.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
main() {
|
|
var b = new B();
|
|
Expect.equals(42, b.foo());
|
|
}
|
|
|
|
class A {
|
|
foo(); // //# 00: compile-time error
|
|
static bar(); // //# 01: compile-time error
|
|
}
|
|
|
|
class B extends A {
|
|
foo() => 42;
|
|
bar() => 87;
|
|
}
|