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

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

Issue 9016053: Violating type bounds on a new invocation is a static type error, not a compile error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added junit test' Created 8 years, 12 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
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 882db1097c23aaddf34940c39dbf984a62f3141b..10a9cf02941ca7f327d1d87301d1687cd7db4857 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -1030,7 +1030,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
node.setReferencedElement(constructorElement);
DartTypeNode typeNode = Types.constructorTypeNode(node);
DartNode typeName = typeNode.getIdentifier();
- Type type = validateTypeNode(typeNode, true);
+ Type type = validateTypeNode(typeNode, false);
codefu 2012/01/03 20:43:41 Could just be validateTypeNode(typeNode);
if (constructorElement == null) {
visit(node.getArgs());
} else {
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698