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

Unified Diff: test/checker/inferred_type_test.dart

Issue 1137543005: Type check binary expressions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and remove assert Created 5 years, 7 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: test/checker/inferred_type_test.dart
diff --git a/test/checker/inferred_type_test.dart b/test/checker/inferred_type_test.dart
index 3efac2a8bebebb98f1d1f575a341ffa0e58f0d4d..4b953751357ff8de0d30caa572ebceed5f8ed5be 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -669,7 +669,7 @@ void main() {
dynamic a = new A();
A b = /*info:DynamicCast*/a;
print(/*info:DynamicInvoke*/a.x);
- print((/*info:DynamicInvoke*/a.x) + 2);
+ print(/*info:DynamicInvoke*/(/*info:DynamicInvoke*/a.x) + 2);
}
'''
});
@@ -1232,7 +1232,7 @@ void main() {
}
{
int f(int x) {};
- A<int> = new A(f);
+ A<int> a = /*info:InferredTypeAllocation*/new A(f);
}
}
'''
@@ -1507,7 +1507,7 @@ void main() {
}
{
Function2<int, int> l0 = /*info:InferredTypeClosure*/(x) => x;
- Function2<int, int> l1 = /*info:InferredTypeClosure*/(x) => x+1;
+ Function2<int, int> l1 = /*info:InferredTypeClosure*/(x) => /*info:DynamicInvoke should be pass*/x+1;
Function2<int, String> l2 = /*info:InferredTypeClosure should be severe:StaticTypeError*/(x) => x;
Function2<int, String> l3 = /*info:InferredTypeClosure should be severe:StaticTypeError*/(x) => /*info:DynamicInvoke should be pass*/x.substring(3);
Function2<String, String> l4 = /*info:InferredTypeClosure*/(x) => /*info:DynamicInvoke should be pass*/x.substring(3);

Powered by Google App Engine
This is Rietveld 408576698