Chromium Code Reviews| Index: pkg/analyzer/test/src/task/strong/checker_test.dart |
| diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart |
| index 724a742ced5b8f092403d666a8e170b6995a70c5..7d846f51e5bbd3cccbefe09d455219c619cb866b 100644 |
| --- a/pkg/analyzer/test/src/task/strong/checker_test.dart |
| +++ b/pkg/analyzer/test/src/task/strong/checker_test.dart |
| @@ -2364,12 +2364,14 @@ void main() { |
| foo1() async => x; |
| Future foo2() async => x; |
| Future<int> foo3() async => (/*info:DynamicCast*/x); |
| - Future<int> foo4() async => (/*severe:StaticTypeError*/new Future<int>.value(/*info:DynamicCast*/x)); |
| + Future<int> foo4() async => (new Future<int>.value(/*info:DynamicCast*/x)); |
| + Future<int> foo4() async => (/*severe:StaticTypeError*/new Future<String>.value(/*info:DynamicCast*/x)); |
|
vsm
2015/12/04 23:25:54
May want to rename one of the 'foo4' methods - we
Leaf
2015/12/04 23:30:03
Done.
|
| bar1() async { return x; } |
| Future bar2() async { return x; } |
| Future<int> bar3() async { return (/*info:DynamicCast*/x); } |
| - Future<int> bar4() async { return (/*severe:StaticTypeError*/new Future<int>.value(/*info:DynamicCast*/x)); } |
| + Future<int> bar4() async { return (new Future<int>.value(/*info:DynamicCast*/x)); } |
| + Future<int> bar4() async { return (/*severe:StaticTypeError*/new Future<String>.value(/*info:DynamicCast*/x)); } |
|
vsm
2015/12/04 23:25:54
Ditto
Leaf
2015/12/04 23:30:03
Done.
|
| int y; |
| Future<int> z; |
| @@ -2386,7 +2388,7 @@ void main() { |
| if (new Random().nextBool()) { |
| return true; |
| } else { |
| - return /*severe:StaticTypeError*/new Future<bool>.value(false); |
| + return new Future<bool>.value(false); |
| } |
| } |
| ''' |