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

Unified Diff: lib/compiler/implementation/typechecker.dart

Issue 10232011: Implement simple dynamic type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor edits. Created 8 years, 8 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: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index c44326180dce5407de98ff00452b1a6f585a8dad..4d581454067102a69f9ec21e27d9c45122d6a9d0 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -34,7 +34,7 @@ class TypeVariableType implements Type {
Element element;
TypeVariableType(this.name, [this.element]);
- toString() => name.toString();
+ toString() => name.slowToString();
}
/**
@@ -62,7 +62,7 @@ class StatementType implements Type {
class InterfaceType implements Type {
final SourceString name;
- final Element element;
+ final ClassElement element;
final Link<Type> arguments;
const InterfaceType(this.name, this.element,

Powered by Google App Engine
This is Rietveld 408576698