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

Side by Side Diff: tests/compiler/dart2js_extra/23486_test.dart

Issue 1229253002: Fix dart2js_extra/23486_test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Regression test for http://dartbug.com/23486/ 5 // Regression test for http://dartbug.com/23486/
6 // 6 //
7 // Dart2js used to crash when using `super` and prefixes inside parenthesized 7 // Dart2js used to crash when using `super` and prefixes inside parenthesized
8 // expressions. 8 // expressions.
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 class D extends C { 28 class D extends C {
29 D() : super(); 29 D() : super();
30 D.name() : (super).name(); /// 02: compile-time error 30 D.name() : (super).name(); /// 02: compile-time error
31 } 31 }
32 32
33 main() { 33 main() {
34 Expect.throws(new A().m); /// 01: continued 34 Expect.throws(new A().m); /// 01: continued
35 Expect.throws(() => new D.name()); /// 02: continued 35 Expect.throws(() => new D.name()); /// 02: continued
36 Expect.throws(() => (p).x); /// 03: static type warning 36 Expect.throws(() => (p).x); /// 03: compile-time error
37 } 37 }
38 38
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698