| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // SharedOptions=--enable-enum |
| 6 |
| 5 import "dart:isolate"; | 7 import "dart:isolate"; |
| 6 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 7 | 9 |
| 8 enum Foo { | 10 enum Foo { |
| 9 BAR, BAZ | 11 BAR, BAZ |
| 10 } | 12 } |
| 11 | 13 |
| 12 verify(val) { | 14 verify(val) { |
| 13 Expect.identical(Foo.BAR, val); | 15 Expect.identical(Foo.BAR, val); |
| 14 } | 16 } |
| 15 | 17 |
| 16 main() { | 18 main() { |
| 17 verify(Foo.BAR); | 19 verify(Foo.BAR); |
| 18 var rp; | 20 var rp; |
| 19 rp = new RawReceivePort((val) { | 21 rp = new RawReceivePort((val) { |
| 20 verify(val); | 22 verify(val); |
| 21 rp.close(); | 23 rp.close(); |
| 22 }); | 24 }); |
| 23 rp.sendPort.send(Foo.BAR); | 25 rp.sendPort.send(Foo.BAR); |
| 24 } | 26 } |
| OLD | NEW |