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

Unified Diff: compiler/java/com/google/dart/compiler/type/Types.java

Issue 9160004: Provide better debugging if a null type is encountered. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated feedback to use fast null check Created 8 years, 11 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: compiler/java/com/google/dart/compiler/type/Types.java
diff --git a/compiler/java/com/google/dart/compiler/type/Types.java b/compiler/java/com/google/dart/compiler/type/Types.java
index 1655b682dd477faa13aa0c93bcd9de9c2b55546f..ca701f6603b37a77aa8aa35cd038d3b2ea8c5d12 100644
--- a/compiler/java/com/google/dart/compiler/type/Types.java
+++ b/compiler/java/com/google/dart/compiler/type/Types.java
@@ -53,7 +53,7 @@ public class Types {
* function or variable type.
*/
public InterfaceType getInterfaceType(Type type) {
- switch (type.getKind()) {
+ switch (TypeKind.of(type)) {
case VARIABLE: {
TypeVariableElement element = ((TypeVariable) type).getTypeVariableElement();
if (element.getBound() == null) {

Powered by Google App Engine
This is Rietveld 408576698