OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // Test that `enum` is considered a keyword and therefore invalid as the name of | 5 import 'dart:mirrors'; |
6 // declarations. | 6 import 'empty.dart'; |
7 | 7 |
8 main() { | 8 main() { |
9 var enum; /// 01: compile-time error | 9 var empty = currentMirrorSystem().findLibrary(#empty); |
| 10 print(empty.location); // Used to crash VM. |
10 } | 11 } |
OLD | NEW |