Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: tests/language/deferred_inheritance_constraints_test.dart

Issue 190553002: Tests that inheritance of deferred classes is disallowed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test for redirecting constructor. Remove status-changes. Use new syntax Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/deferred_inheritance_constraints_lib.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « tests/language/deferred_inheritance_constraints_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698