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

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

Issue 10913197: Convert throw from a statement to an expression (issue 4872) (Closed) Base URL: http://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/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java (revision 12211)
+++ compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java (working copy)
@@ -3,9 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.type;
-import static com.google.dart.compiler.common.ErrorExpectation.assertErrors;
-import static com.google.dart.compiler.common.ErrorExpectation.errEx;
-
import com.google.common.base.Joiner;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
@@ -53,6 +50,9 @@
import com.google.dart.compiler.resolver.ResolverErrorCode;
import com.google.dart.compiler.resolver.TypeErrorCode;
+import static com.google.dart.compiler.common.ErrorExpectation.assertErrors;
+import static com.google.dart.compiler.common.ErrorExpectation.errEx;
+
import java.io.Reader;
import java.io.StringReader;
import java.net.URI;
@@ -3946,7 +3946,7 @@
"}");
assertErrors(
libraryResult.getErrors(),
- errEx(ResolverErrorCode.RETHROW_NOT_IN_CATCH, 3, 3, 6));
+ errEx(ResolverErrorCode.RETHROW_NOT_IN_CATCH, 3, 3, 5));
}
public void test_externalKeyword_OK() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698