| 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 a4878c66987c8484c0f28527f06359303373604c..d8fb80c7ac9a4fadd0aab612139a1d907e50e774 100644
|
| --- a/pkg/analyzer/test/src/task/strong/checker_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
|
| @@ -1432,6 +1432,25 @@ void main() {
|
| '''
|
| });
|
|
|
| + testChecker('type promotion from dynamic', {
|
| + '/main.dart': r'''
|
| + f() {
|
| + dynamic x;
|
| + if (x is int) {
|
| + int y = x;
|
| + String z = /*severe:STATIC_TYPE_ERROR*/x;
|
| + }
|
| + }
|
| + g() {
|
| + Object x;
|
| + if (x is int) {
|
| + int y = x;
|
| + String z = /*severe:STATIC_TYPE_ERROR*/x;
|
| + }
|
| + }
|
| + '''
|
| + });
|
| +
|
| testChecker('unary operators', {
|
| '/main.dart': '''
|
| class A {
|
|
|