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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 54983007: Make test of malformed types a dynamic type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month 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/ssa/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index cdc75a200a5e3ce5cbb083860c14140374e6cbe9..426d329ab88f862c22634ca2f65e6896f72ed527 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -1204,7 +1204,7 @@ abstract class HInstruction implements Spannable {
// available.
assert(type.kind != TypeKind.TYPE_VARIABLE);
assert(type.treatAsRaw || type.kind == TypeKind.FUNCTION);
- if (type.treatAsDynamic) return this;
+ if (type.isDynamic) return this;
// The type element is either a class or the void element.
Element element = type.element;
if (identical(element, compiler.objectClass)) return this;

Powered by Google App Engine
This is Rietveld 408576698