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

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

Issue 137893024: Revert "Reapply "Implement new model for class members." and "Implement new model for interface mem… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/compiler/dart2js/type_test_helper.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 // Check that metadata on a class 'Super' using subtypes of 'Super' are not
6 // considered as cyclic inheritance or lead to crashes.
7
8 @Sub1(0) /// 01: ok
9 class Super {
10 final field;
11 @Sub2(1) /// 02: ok
12 const Super(this.field);
13 }
14
15 class Sub1 extends Super {
16 const Sub1(var field) : super(field);
17 }
18
19 class Sub2 extends Super {
20 const Sub2(var field) : super(field);
21 }
22
23 void main() {
24 print(new Super(1));
25 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/type_test_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698