Index: pkg/analyzer/test/generated/resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart |
index 7d26753550f7eff2449e0ab94d0f06f41c8992c0..83533078df271aa1c44a59dbf55f1c5411d4011a 100644 |
--- a/pkg/analyzer/test/generated/resolver_test.dart |
+++ b/pkg/analyzer/test/generated/resolver_test.dart |
@@ -12587,6 +12587,18 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase { |
expect(functionReturnValue(4).staticType, typeProvider.stringType); |
} |
+ void test_inference_hints() { |
+ Source source = addSource(r''' |
+ void main () { |
+ var x = 3; |
+ List<int> l0 = []; |
+ } |
+ '''); |
+ LibraryElement library = resolve2(source); |
+ assertNoErrors(source); |
+ verify([source]); |
+ } |
+ |
void test_instanceCreation() { |
String code = r''' |
class A<S, T> { |
@@ -13819,25 +13831,6 @@ class TypeOverrideManagerTest extends EngineTestCase { |
@reflectiveTest |
class TypePropagationTest extends ResolverTestCase { |
- void test_invocation_target_prefixed() { |
- addNamedSource( |
- '/helper.dart', |
- ''' |
-library helper; |
-int max(int x, int y) => 0; |
-'''); |
- String code = ''' |
-import 'helper.dart' as helper; |
-main() { |
- helper.max(10, 10); // marker |
-}'''; |
- SimpleIdentifier methodName = |
- _findMarkedIdentifier(code, "(10, 10); // marker"); |
- MethodInvocation methodInvoke = methodName.parent; |
- expect(methodInvoke.methodName.staticElement, isNotNull); |
- expect(methodInvoke.methodName.propagatedElement, isNull); |
- } |
- |
void fail_mergePropagatedTypesAtJoinPoint_1() { |
// https://code.google.com/p/dart/issues/detail?id=19929 |
_assertTypeOfMarkedExpression( |
@@ -14657,6 +14650,25 @@ main() { |
} |
} |
+ void test_invocation_target_prefixed() { |
+ addNamedSource( |
+ '/helper.dart', |
+ ''' |
+library helper; |
+int max(int x, int y) => 0; |
+'''); |
+ String code = ''' |
+import 'helper.dart' as helper; |
+main() { |
+ helper.max(10, 10); // marker |
+}'''; |
+ SimpleIdentifier methodName = |
+ _findMarkedIdentifier(code, "(10, 10); // marker"); |
+ MethodInvocation methodInvoke = methodName.parent; |
+ expect(methodInvoke.methodName.staticElement, isNotNull); |
+ expect(methodInvoke.methodName.propagatedElement, isNull); |
+ } |
+ |
void test_is_conditional() { |
Source source = addSource(r''' |
class A {} |