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

Unified Diff: tests/compiler/dart2js/is_inference_test.dart

Issue 16944004: Change how we deal with manual inlining of argument error and NSM when propagating types. This chan… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/is_inference_test.dart
===================================================================
--- tests/compiler/dart2js/is_inference_test.dart (revision 23949)
+++ tests/compiler/dart2js/is_inference_test.dart (working copy)
@@ -7,6 +7,8 @@
const String TEST_IF = r"""
test(param) {
+ // Ensure a String+ is in the system.
+ print('foo');
kasperl 2013/06/14 06:19:08 So printing foo is enough to ensure that String +
ngeoffray 2013/06/14 06:58:34 Yes, the [: param + 53 :] expression line 15 does
if (param is int) {
param = param + 42;
}
@@ -16,6 +18,7 @@
const String TEST_IF_ELSE = r"""
test(param) {
+ print('foo');
if (param is int) {
param = param + 42;
} else {
@@ -27,6 +30,7 @@
const String TEST_IF_RETURN = r"""
test(param) {
+ print('foo');
if (param is int) {
return param + 42;
}
@@ -36,6 +40,7 @@
const String TEST_IF_NOT_ELSE = r"""
test(param) {
+ print('foo');
if (param is !int) {
param = param + 53;
} else {
@@ -47,6 +52,7 @@
const String TEST_IF_NOT_RETURN = r"""
test(param) {
+ print('foo');
if (param is !int) return param + 53;
return param + 42;
}
@@ -54,6 +60,7 @@
const String TEST_IF_NOT_ELSE_RETURN = r"""
test(param) {
+ print('foo');
if (param is !int) {
return param + 53;
} else {

Powered by Google App Engine
This is Rietveld 408576698