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

Side by Side Diff: tests/compiler/dart2js/inference/data/simple.dart

Issue 3009693002: Handle int/double literals in inference (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 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 | « pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.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
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /*zero:[exact=JSUInt31]*/
6 zero() => 0;
7
8 /*one:[exact=JSUInt31]*/
9 one() => 1;
10
11 /*half:[exact=JSDouble]*/
12 half() => 0.5;
13
14 /*large:[subclass=JSUInt32]*/
15 large() => 2147483648;
16
17 /*huge:[subclass=JSPositiveInt]*/
18 huge() => 4294967296;
19
5 /*main:[null]*/ 20 /*main:[null]*/
6 main() {} 21 main() {
22 zero();
23 one();
24 half();
25 large();
26 huge();
27 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698