Chromium Code Reviews| Index: tests/language/deferred_inheritance_constraints_test.dart |
| diff --git a/tests/language/deferred_inheritance_constraints_test.dart b/tests/language/deferred_inheritance_constraints_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4781bce86f773c578495b8b8d617cf18e39a05d2 |
| --- /dev/null |
| +++ b/tests/language/deferred_inheritance_constraints_test.dart |
| @@ -0,0 +1,21 @@ |
| +// 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. |
| + |
| +import "package:expect/expect.dart"; |
| +import "deferred_inheritance_constraints_lib.dart" deferred as lib; |
| + |
| +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.
|
| +class D implements lib.E {} /// implements: compile-time error |
| +class B {} |
| +class E = B with lib.E; /// mixin: compile-time error |
| +class F { /// redirecting_constructor: static type warning, runtime error |
| + factory F() = lib.E; /// redirecting_constructor: continued |
| +} /// redirecting_constructor: continued |
| + |
| +void main() { |
| + new C(); /// extends: continued |
| + new D(); /// implements: continued |
| + new E(); /// mixin: continued |
| + new F(); /// redirecting_constructor: continued |
| +} |