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

Unified Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 1724543002: fix #25487, infer block lambdas from return statements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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: pkg/analyzer/test/src/context/mock_sdk.dart
diff --git a/pkg/analyzer/test/src/context/mock_sdk.dart b/pkg/analyzer/test/src/context/mock_sdk.dart
index 7d85c4f22c04639dfe28f437b3ea2c5efaadbb99..54669495a51c45d67f08d22889cf2afce61b083e 100644
--- a/pkg/analyzer/test/src/context/mock_sdk.dart
+++ b/pkg/analyzer/test/src/context/mock_sdk.dart
@@ -36,7 +36,9 @@ class Future<T> {
const <String, String>{
'/lib/async/stream.dart': r'''
part of dart.async;
-class Stream<T> {}
+class Stream<T> {
+ Future<T> get first;
+}
abstract class StreamTransformer<S, T> {}
'''
});
@@ -112,6 +114,7 @@ abstract class num implements Comparable<num> {
num operator *(num other);
num operator /(num other);
int toInt();
+ double toDouble();
num abs();
int round();
}
@@ -140,6 +143,7 @@ class Iterator<E> {
abstract class Iterable<E> {
Iterator<E> get iterator;
bool get isEmpty;
+ E get first;
Iterable/*<R>*/ map/*<R>*/(/*=R*/ f(E e));
« no previous file with comments | « pkg/analyzer/lib/src/generated/static_type_analyzer.dart ('k') | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698