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

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

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments Created 3 years, 9 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class MyException { } 7 class MyException { }
8 8
9 class MyException1 extends MyException { } 9 class MyException1 extends MyException { }
10 10
(...skipping 19 matching lines...) Expand all
30 on UndefinedClass /// 07: static type warning 30 on UndefinedClass /// 07: static type warning
31 catch(e) { foo = 4; } 31 catch(e) { foo = 4; }
32 Expect.equals(2, foo); 32 Expect.equals(2, foo);
33 } 33 }
34 34
35 testFinal() { 35 testFinal() {
36 try { 36 try {
37 throw "catch this!"; 37 throw "catch this!";
38 } catch (e, s) { 38 } catch (e, s) {
39 // Test that the error and stack trace variables are final. 39 // Test that the error and stack trace variables are final.
40 e = null; /// 10: runtime error 40 e = null; // /// 10: runtime error
41 s = null; /// 11: runtime error 41 s = null; // /// 11: runtime error
42 } 42 }
43 } 43 }
44 44
45 main() { 45 main() {
46 test1(); 46 test1();
47 testFinal(); 47 testFinal();
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698