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

Side by Side Diff: tests/language/private_mixin_exception_throw_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Regression test for http://dartbug.com/11637 5 // Regression test for http://dartbug.com/11637
6 6
7 class _C {} 7 class _C {}
8
8 class _E { 9 class _E {
9 throwIt() => throw "it"; 10 throwIt() => throw "it";
10 } 11 }
12
11 class _F { 13 class _F {
12 throwIt() => throw "IT"; 14 throwIt() => throw "IT";
13 } 15 }
16
14 class _D extends _C with _E, _F {} 17 class _D extends _C with _E, _F {}
15 18
16 main() { 19 main() {
17 var d = new _D(); 20 var d = new _D();
18 try { 21 try {
19 d.throwIt(); 22 d.throwIt();
20 } catch (e, s) { 23 } catch (e, s) {
21 print("Exception: $e"); 24 print("Exception: $e");
22 print("Stacktrace:\n$s"); 25 print("Stacktrace:\n$s");
23 } 26 }
24 } 27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698