Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 import "package:expect/expect.dart"; | |
| 6 import "deferred_inheritance_constraints_lib.dart" deferred as lib; | |
| 7 | |
| 8 class C extends lib.E {} /// extends: compile-time error | |
|
floitsch
2014/07/04 11:28:39
Not necessary this time, but normally I prefer '//
sigurdm
2014/07/07 08:12:21
Done.
| |
| 9 class D implements lib.E {} /// implements: compile-time error | |
| 10 class B {} | |
| 11 class E = B with lib.E; /// mixin: compile-time error | |
| 12 class F { /// redirecting_constructor: static type warning, runtime error | |
| 13 factory F() = lib.E; /// redirecting_constructor: continued | |
| 14 } /// redirecting_constructor: continued | |
| 15 | |
| 16 void main() { | |
| 17 new C(); /// extends: continued | |
| 18 new D(); /// implements: continued | |
| 19 new E(); /// mixin: continued | |
| 20 new F(); /// redirecting_constructor: continued | |
| 21 } | |
| OLD | NEW |