| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
|
| index 4c7908f4ee0089da06e3151f86219c653f69ad7c..dbd3fc15b77dc9ad91d91a2fd61c6e3e80ab8049 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
|
| @@ -63,6 +63,17 @@ public class HintCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void fail_missingReturn_async() throws Exception {
|
| + // TODO(paulberry): Some async/await type checking has not yet been fully backported from dart.
|
| + // See dartbug.com/22252.
|
| + Source source = addSource(createSource(//
|
| + "import 'dart:async';",
|
| + "Future<int> f() async {}"));
|
| + resolve(source);
|
| + assertErrors(source, HintCode.MISSING_RETURN);
|
| + verify(source);
|
| + }
|
| +
|
| public void fail_overrideEqualsButNotHashCode() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|