| Index: compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart
|
| ===================================================================
|
| --- compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart (revision 11229)
|
| +++ compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart (working copy)
|
| @@ -15,7 +15,7 @@
|
| static testRethrow() {
|
| try {
|
| throw new Foo();
|
| - } catch(var e, var st) {
|
| + } catch(e, st) {
|
| throw;
|
| }
|
| }
|
| @@ -24,7 +24,7 @@
|
| var exception;
|
| try {
|
| throw new Foo();
|
| - } catch(var e, var st) {
|
| + } catch(e, st) {
|
| exception = e;
|
| }
|
| }
|
| @@ -42,7 +42,7 @@
|
| var exception;
|
| try {
|
| throw new Foo();
|
| - } catch(var e, var st) {
|
| + } catch(e, st) {
|
| exception = e;
|
| } finally {
|
| exception = null;
|
| @@ -53,9 +53,9 @@
|
| var exception;
|
| try {
|
| throw new Foo();
|
| - } catch(Foo e, var st) {
|
| + } on Foo catch(e, st) {
|
| exception = e;
|
| - } catch(Bar e) {
|
| + } on Bar catch(e) {
|
| exception = e;
|
| } finally {
|
| exception = null;
|
| @@ -66,52 +66,18 @@
|
| var exception;
|
| try {
|
| throw new Foo();
|
| - } catch (final e) {
|
| + } catch (e) {
|
| exception = e;
|
| - } catch (var e) {
|
| + } on Map catch (e) {
|
| exception = e;
|
| - } catch (Map<int, double> e) {
|
| + } on int catch (e) {
|
| exception = e;
|
| - } catch (final Map<int, double> e) {
|
| + } catch (e, st) {
|
| exception = e;
|
| - } catch (int e) {
|
| + } on Map catch (e, st) {
|
| exception = e;
|
| - } catch (final int e) {
|
| + } on int catch (e, st) {
|
| exception = e;
|
| - } catch (final e, final st) {
|
| - exception = e;
|
| - } catch (var e, final st) {
|
| - exception = e;
|
| - } catch (Map<int, double> e, final st) {
|
| - exception = e;
|
| - } catch (int e, final st) {
|
| - exception = e;
|
| - } catch (int e, final int st) {
|
| - exception = e;
|
| - } catch (final e, var st) {
|
| - exception = e;
|
| - } catch (var e, var st) {
|
| - exception = e;
|
| - } catch (Map<int, double> e, var st) {
|
| - exception = e;
|
| - } catch (int e, var st) {
|
| - exception = e;
|
| - } catch (final e, Map<int, double> st) {
|
| - exception = e;
|
| - } catch (var e, Map<int, double> st) {
|
| - exception = e;
|
| - } catch (Map<int, double> e, Map<int, double> st) {
|
| - exception = e;
|
| - } catch (int e, Map<int, double> st) {
|
| - exception = e;
|
| - } catch (final e, int st) {
|
| - exception = e;
|
| - } catch (var e, int st) {
|
| - exception = e;
|
| - } catch (Map<int, double> e, int st) {
|
| - exception = e;
|
| - } catch (int e, int st) {
|
| - exception = e;
|
| } finally {
|
| exception = e;
|
| }
|
|
|