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

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

Issue 226953003: Revert "Compute frontend/backend specific constants." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
(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 class C {
6 final double d;
7 const C(this.d);
8 }
9
10 class D extends C {
11 const D(var d) : super(d);
12 }
13
14 const c = const C(0.0); /// 01: ok
15 const d = const C(0); /// 02: static type warning, checked mode compile-time err or
16 const e = const D(0.0); /// 03: ok
17 const f = const D(0); /// 04: checked mode compile-time error
18
19 main() {
20 print(c); /// 01: continued
21 print(d); /// 02: continued
22 print(e); /// 03: continued
23 print(f); /// 04: continued
24 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/language/const_evaluation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698