Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
|
Mads Ager (google)
2011/11/04 09:06:13
I would prefer to find some other way of testing t
| |
| 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. | |
| 4 | |
| 5 | |
| 6 // A test that crashes (for now). | |
|
Søren Gjesse
2011/11/04 09:05:34
Does this crash due to a VM bug? We have a binary
| |
| 7 interface Link<T> factory LinkFactory { | |
| 8 Link.fromInt(int x); | |
| 9 } | |
| 10 | |
| 11 class MyLink<T> implements Link<T> { | |
| 12 } | |
| 13 | |
| 14 class LinkFactory { | |
| 15 factory Link.fromInt(int x) { | |
| 16 return new MyLink(); | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 main() { | |
| 21 print("This goes to stdout."); | |
| 22 var a = new Link<int>.fromInt(2); | |
| 23 } | |
| OLD | NEW |