2015-05-22 13:00:07 +00:00
|
|
|
// Copyright (c) 2015, 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';
|
|
|
|
|
|
|
|
class SuperClass {
|
|
|
|
final field = 0;
|
|
|
|
noSuchMethod(_) => 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Class extends SuperClass {
|
|
|
|
m() {
|
2017-03-22 00:29:56 +00:00
|
|
|
super.field = 87; //# 01: static type warning
|
2015-05-22 13:00:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main() {
|
2017-03-22 00:29:56 +00:00
|
|
|
new Class().m(); //# 01: continued
|
2017-03-23 19:40:21 +00:00
|
|
|
}
|