| 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 eb212d7696a8ebd274401cb251b5326b7ada135f..bd7c686c4cca33ed1623bfd953503a4727222d0b 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
|
| @@ -3281,6 +3281,60 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_typeType_class() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class C {}",
|
| + "f(Type t) {}",
|
| + "main() {",
|
| + " f(C);",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_typeType_class_prefixed() throws Exception {
|
| + addSource("/lib.dart", createSource(//
|
| + "library lib;",
|
| + "class C {}"));
|
| + Source source = addSource(createSource(//
|
| + "import 'lib.dart' as p;",
|
| + "f(Type t) {}",
|
| + "main() {",
|
| + " f(p.C);",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_typeType_functionTypeAlias() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "typedef F();",
|
| + "f(Type t) {}",
|
| + "main() {",
|
| + " f(F);",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_typeType_functionTypeAlias_prefixed() throws Exception {
|
| + addSource("/lib.dart", createSource(//
|
| + "library lib;",
|
| + "typedef F();"));
|
| + Source source = addSource(createSource(//
|
| + "import 'lib.dart' as p;",
|
| + "f(Type t) {}",
|
| + "main() {",
|
| + " f(p.F);",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify(source);
|
| + }
|
| +
|
| public void test_undefinedConstructorInInitializer_explicit_named() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|