Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java

Issue 913623002: Partial backport of analyzer async/await fixes to Java. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status files Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {",

Powered by Google App Engine
This is Rietveld 408576698