| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 'dart:core'; | 5 import 'dart:core'; |
| 6 | 6 |
| 7 void throwString() { | 7 void throwString() { |
| 8 throw 'hello world!'; // LINT | 8 throw 'hello world!'; // LINT |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 invocation.memberName, | 64 invocation.memberName, |
| 65 invocation.positionalArguments, | 65 invocation.positionalArguments, |
| 66 invocation.namedArguments); | 66 invocation.namedArguments); |
| 67 } | 67 } |
| 68 | 68 |
| 69 class E extends Object with Exception { | 69 class E extends Object with Exception { |
| 70 static throws() { | 70 static throws() { |
| 71 throw new E(); // OK | 71 throw new E(); // OK |
| 72 } | 72 } |
| 73 } | 73 } |
| OLD | NEW |