| 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 6e3baa98a047b4832690cf57fba0a1147f880f71..c6861bd5a608429455a2b74a8f915a6cf199e7db 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
|
| @@ -245,6 +245,32 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_constWithUndefinedConstructor() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " const A.name();",
|
| + "}",
|
| + "f() {",
|
| + " return const A.name();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_constWithUndefinedConstructorDefault() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " const A();",
|
| + "}",
|
| + "f() {",
|
| + " return const A();",
|
| + "}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| public void test_defaultValueInFunctionTypeAlias() throws Exception {
|
| Source source = addSource(createSource(//
|
| "typedef F([x]);"));
|
|
|