1f2051f88a
Removed negative static_final_field_negative_test.dart and created a multi-test in static_final_field2_test.dart. Changed throw7_negative_test.dart into a multi-test throw7_test.dart More Expect.equals cleanup in scope_variable_test.dart. Add more issue numbers as well. R=kustermann@google.com BUG= Review URL: https://codereview.chromium.org//23638006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27123 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
546 B
Dart
17 lines
546 B
Dart
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
// Dart test program for testing throw statement
|
|
|
|
main() {
|
|
int i = 0;
|
|
try {
|
|
i = 1;
|
|
} catch (exception) {
|
|
i = 2;
|
|
}
|
|
// Since there is a generic 'catch all' statement preceding this
|
|
// we expect to get a dead code error/warning over here.
|
|
on Exception catch (exception) { i = 3; } /// 01: compile-time error
|
|
}
|