2011-05-14 13:29:11 -04:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
// Regression test for issue #374
|
2011-05-14 03:21:08 -04:00
|
|
|
use std;
|
|
|
|
import std::option;
|
|
|
|
import std::option::none;
|
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
tag sty { ty_nil; }
|
2011-05-14 03:21:08 -04:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
type raw_t = rec(sty struct, option::t[str] cname, uint hash);
|
2011-05-14 03:21:08 -04:00
|
|
|
|
|
|
|
fn mk_raw_ty(sty st, &option::t[str] cname) -> raw_t {
|
2011-06-15 11:19:50 -07:00
|
|
|
ret rec(struct=st, cname=cname, hash=0u);
|
2011-05-14 03:21:08 -04:00
|
|
|
}
|
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
fn main() { mk_raw_ty(ty_nil, none[str]); }
|