48a258a4a5
Checks override on fields and for methods with type parameters. Bug: 32613 Change-Id: Ia32d1080959bc706fd72a075fb6ba724fa93fd58 Reviewed-on: https://dart-review.googlesource.com/64542 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Erik Ernst <eernst@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
20 lines
390 B
Dart
20 lines
390 B
Dart
// Copyright (c) 2014, 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.
|
|
|
|
class A {
|
|
static var a;
|
|
var b;
|
|
}
|
|
|
|
class B extends A {}
|
|
|
|
class C extends B {
|
|
var a; //# 01: ok
|
|
static var b; //# 02: compile-time error
|
|
}
|
|
|
|
void main() {
|
|
new C();
|
|
}
|