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

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

Issue 8564027: Report errors for default parameter values, issue 351 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for tests and other Created 9 years, 1 month 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/TypeAnalyzerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
index 00e3e5d68fa424503c42e3167928a786ee61f85a..6805a1754acf6b7f5b62bce8fca81659a270bf6d 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1233,7 +1233,7 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
public void testImplementsAndOverrides() {
analyzeClasses(loadSource(
"interface Interface {",
- " void foo([x = null]);",
+ " void foo(x);",
" void bar();",
"}",
// Abstract class not reported until first instantiation.
@@ -1271,7 +1271,7 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
public void testImplementsAndOverrides2() {
analyzeClasses(loadSource(
"interface Interface {",
- " void foo([x = null]);",
+ " void foo(x);",
"}",
// Abstract class not reported until first instantiation.
"class Class implements Interface {",

Powered by Google App Engine
This is Rietveld 408576698