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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java

Issue 11361018: Cascade should have type set. Tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
index 601edbbfd6cf291b0ad76e470de090312ebd6e10..445482faaae2cf37f35f3709c43bafc707290b5f 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -4328,6 +4328,17 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
errEx(ParserErrorCode.EXTERNAL_METHOD_BODY, 6, 26, 2));
}
+ public void test_cascade_type() throws Exception {
+ analyzeLibrary(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ " String s = '';",
+ " var v = s..length;",
+ "}",
+ "");
+ assertInferredElementTypeString(testUnit, "v", "String");
+ }
+
/**
* <p>
* http://code.google.com/p/dart/issues/detail?id=4315

Powered by Google App Engine
This is Rietveld 408576698