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/lib/dart/element/type.dart

Issue 2208953002: fix #25944, improve Future.then inference (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cleanup unused code Created 4 years, 4 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/lib/dart/element/type.dart
diff --git a/pkg/analyzer/lib/dart/element/type.dart b/pkg/analyzer/lib/dart/element/type.dart
index 11c97e8d03b784a0c03045c0ff679983a79eb839..29524d701dbf24f8ef4a3e7fcc49d03d17be187e 100644
--- a/pkg/analyzer/lib/dart/element/type.dart
+++ b/pkg/analyzer/lib/dart/element/type.dart
@@ -24,14 +24,15 @@ library analyzer.dart.element.type;
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/src/dart/element/type.dart' show InterfaceTypeImpl;
-import 'package:analyzer/src/generated/type_system.dart' show TypeSystem;
+import 'package:analyzer/src/generated/type_system.dart'
+ show TypeContext, TypeSystem;
/**
* The type associated with elements in the element model.
*
* Clients may not extend, implement or mix-in this class.
*/
-abstract class DartType {
+abstract class DartType implements TypeContext {
Leaf 2016/08/05 22:32:35 It bothers me a bit that this leaks into the publi
Jennifer Messerly 2016/08/08 21:59:26 Yeah, making it a subtype of TypeImpl works for me
/**
* An empty list of types.
*/
@@ -290,7 +291,7 @@ abstract class FunctionType implements ParameterizedType {
*
* In addition, the following subtype rules apply:
*
- * <i>(T<sub>1</sub>, &hellip;, T<sub>n</sub>, []) &rarr; T <: (T<sub>1</sub>,
+ * <i>(T<sub>1</sub>, &hellip;, T<sub>n</sub>, `[]`) &rarr; T <: (T<sub>1</sub>,
Leaf 2016/08/05 22:32:35 line length.
Jennifer Messerly 2016/08/08 21:59:26 Done.
* &hellip;, T<sub>n</sub>) &rarr; T.</i><br>
* <i>(T<sub>1</sub>, &hellip;, T<sub>n</sub>) &rarr; T <: (T<sub>1</sub>,
* &hellip;, T<sub>n</sub>, {}) &rarr; T.</i><br>
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | pkg/analyzer/lib/src/generated/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698