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

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

Issue 10928230: Issue 5082. It is an error if argument to '?' is not a formal parameter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 3e7b71e225290dc1ab0b09eb3d44010278e0639e..896d394013bb33fadfd817e4c2d9c4183868fe05 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -619,6 +619,12 @@ public class TypeAnalyzer implements DartCompilationPhase {
}
@Override
+ public Type visitExprStmt(DartExprStmt node) {
+ Type type = typeOf(node.getExpression());
+ return type;
+ }
+
+ @Override
public Type visitVariableStatement(DartVariableStatement node) {
Type type = typeOf(node.getTypeNode());
visit(node.getVariables());

Powered by Google App Engine
This is Rietveld 408576698