a37e00ed1f
This preserves the old syntax for now.
8 lines
165 B
Rust
8 lines
165 B
Rust
tag option[T] { some(T); none; }
|
|
|
|
type r[T] = {mutable v: (option[T])[]};
|
|
|
|
fn f[T]() -> [T] { ret ~[]; }
|
|
|
|
fn main() { let r: r[int] = {mutable v: ~[]}; r.v = f(); }
|