| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| index 271af0694f73ce910407fd5d4cb4948d5f0f0129..9207711f9d3541c9d4799ce86f6dafff77152dc2 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| @@ -2085,6 +2085,18 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_returnOfInvalidType_dynamicAsTypeArgument() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class I<T> {",
|
| + " factory I() => new A<T>();",
|
| + "}",
|
| + "class A<T> implements I {",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| public void test_returnOfInvalidType_subtype() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {}",
|
|
|