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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/universe.dart

Issue 11412245: MalformedType used for all invalid type annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years 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: sdk/lib/_internal/compiler/implementation/universe/universe.dart
diff --git a/sdk/lib/_internal/compiler/implementation/universe/universe.dart b/sdk/lib/_internal/compiler/implementation/universe/universe.dart
index be913e21c61fe1bff8b83092951b5be8092b9b43..3c6be1821de06d88c78225425113df8ba1d590d2 100644
--- a/sdk/lib/_internal/compiler/implementation/universe/universe.dart
+++ b/sdk/lib/_internal/compiler/implementation/universe/universe.dart
@@ -382,7 +382,10 @@ class TypedSelector extends Selector {
selector.name,
selector.library,
selector.argumentCount,
- selector.namedArguments);
+ selector.namedArguments) {
+ // Invariant: Typed selector can not be based on a malformed type.
+ assert(!identical(receiverType.kind, TypeKind.MALFORMED_TYPE));
+ }
/**
* Check if [element] will be the one used at runtime when being

Powered by Google App Engine
This is Rietveld 408576698