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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java

Issue 10434008: Use most specific inferred type, or fall back to Dynamic (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
index 898fa369aaa9ce885a2b4df39c68c8c8e668ed26..cab034d34f6271d44e2df46be741ef8e8afdded5 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
@@ -317,16 +317,13 @@ public class CompletionEngineTest extends TestCase {
public void testCommentSnippets051() throws Exception {
String source = Joiner.on("\n").join(
"void r() {",
- " var l = new List.from(['a','b','c']);",
- " l.!1length;",
- " for (var v in l) {",
- " if (v is String) {",
- " v.!2length;",
- " v.!3getKeys;",
- " }",
+ " var v;",
+ " if (v is String) {",
+ " v.!1length;",
+ " v.!2getKeys;",
" }",
"}");
- test(source, "1+length", "2+length", "3-getKeys");
+ test(source, "1+length", "2-getKeys");
}
public void testCommentSnippets052() throws Exception {
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698