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

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2638183002: Issue 28027. Move Null to the bottom in the Analyzer. (Closed)
Patch Set: Fixes for review comments. Created 3 years, 11 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: pkg/analyzer/test/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index 4e4b890828a09d8d73cc4be11d1fa03cee885e6e..525e99fd45fea2f3a3ff0224fc4b167045b66a6a 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -4993,6 +4993,18 @@ class A {
verify([source]);
}
+ test_returnOfInvalidType_async_future_int_mismatches_future_null() async {
+ Source source = addSource(r'''
+import 'dart:async';
+Future<Null> f() async {
+ return 5;
+}
+''');
+ await computeAnalysisResult(source);
+ assertNoErrors(source);
+ verify([source]);
+ }
+
test_returnOfInvalidType_dynamic() async {
Source source = addSource(r'''
class TypeError {}
@@ -5071,6 +5083,7 @@ void f2() { return; }
void f3() { return null; }
void f4() { return g1(); }
void f5() { return g2(); }
+void f6() => throw 42;
g1() {}
void g2() {}
''');
« no previous file with comments | « pkg/analyzer/test/generated/hint_code_test.dart ('k') | pkg/analyzer/test/generated/non_hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698