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

Unified Diff: test/checker/inferred_type_test.dart

Issue 1059873002: Tweaks to warning level and reporting (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix up tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/checker/checker_test.dart ('k') | test/codegen/expect/BenchmarkBase.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/inferred_type_test.dart
diff --git a/test/checker/inferred_type_test.dart b/test/checker/inferred_type_test.dart
index 0c2c485847c520b0a4e2b987a8c9eac5b1c9f1fd..bf2d70922844cb71e17539d55aea5533550f1dec 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -668,8 +668,8 @@ void main() {
test() {
dynamic a = new A();
A b = /*info:DynamicCast*/a;
- print(/*warning:DynamicInvoke*/a.x);
- print((/*warning:DynamicInvoke*/a.x) + 2);
+ print(/*info:DynamicInvoke*/a.x);
+ print((/*info:DynamicInvoke*/a.x) + 2);
}
'''
});
@@ -1483,27 +1483,27 @@ void main() {
Function2<int, String> l1 = (int x) => "hello";
Function2<int, String> l2 = /*severe:StaticTypeError*/(String x) => "hello";
Function2<int, String> l3 = /*severe:StaticTypeError*/(int x) => 3;
- Function2<int, String> l4 = /*warning:InferableClosure should be severe:StaticTypeError*/(int x) {return 3};
+ Function2<int, String> l4 = /*warning:UninferredClosure should be severe:StaticTypeError*/(int x) {return 3};
}
{
Function2<int, String> l0 = /*info:InferredTypeClosure*/(x) => null;
Function2<int, String> l1 = /*info:InferredTypeClosure*/(x) => "hello";
Function2<int, String> l2 = /*severe:StaticTypeError*/(x) => 3;
- Function2<int, String> l3 = /*warning:InferableClosure should be severe:StaticTypeError*/(x) {return 3};
+ Function2<int, String> l3 = /*warning:UninferredClosure should be severe:StaticTypeError*/(x) {return 3};
}
{
Function2<int, List<String>> l0 = (int x) => null;
Function2<int, List<String>> l1 = /*info:InferredTypeClosure*/(int x) => ["hello"];
Function2<int, List<String>> l2 = /*severe:StaticTypeError*/(String x) => ["hello"];
- Function2<int, List<String>> l3 = /*warning:InferableClosure should be severe:StaticTypeError*/(int x) => [3];
- Function2<int, List<String>> l4 = /*warning:InferableClosure should be severe:StaticTypeError*/(int x) {return [3]};
+ Function2<int, List<String>> l3 = /*warning:UninferredClosure should be severe:StaticTypeError*/(int x) => [3];
+ Function2<int, List<String>> l4 = /*warning:UninferredClosure should be severe:StaticTypeError*/(int x) {return [3]};
}
{
Function2<int, int> l0 = /*info:InferredTypeClosure*/(x) => x;
Function2<int, int> l1 = /*info:InferredTypeClosure*/(x) => 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) => /*warning:DynamicInvoke should be pass*/x.substring(3);
- Function2<String, String> l4 = /*info:InferredTypeClosure*/(x) => /*warning:DynamicInvoke should be pass*/x.substring(3);
+ 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);
}
}
'''
« no previous file with comments | « test/checker/checker_test.dart ('k') | test/codegen/expect/BenchmarkBase.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698