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

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

Issue 987393002: Support @NoInline for constructor bodies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
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 // This is a regression test for http://dartbug.com/22723. 5 // This is a regression test for http://dartbug.com/22723.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 class A { 9 class A {
10 final x; 10 final x;
11 11
12 @NoInline 12 @NoInline()
Johnni Winther 2015/03/11 08:27:52 This should be a compile-time error, but we unfort
herhut 2015/03/11 14:01:56 Acknowledged.
13 A({this.x: "foo"}) { 13 A({this.x: "foo"}) {
14 Expect.equals("foo", x.toString()); 14 Expect.equals("foo", x.toString());
15 try {} catch (_) {}; // Make sure it really does not get inlined.
16 } 15 }
17 } 16 }
18 17
19 class C extends A { 18 class C extends A {
20 C(foobar) { } 19 C(foobar) { }
21 } 20 }
22 21
23 main() { 22 main() {
24 var c = new C(499); 23 var c = new C(499);
25 Expect.equals("foo", c.x.toString()); 24 Expect.equals("foo", c.x.toString());
26 } 25 }
27 26
OLDNEW
« pkg/compiler/lib/src/js_backend/backend.dart ('K') | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698