blob: 0a7f0b28340cd93b273ea6b4fc6d9582a63b3176 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Tests that shapes respect linearize_ty_params().
enum option<T> {
none,
some(T),
}
type smallintmap<T> = @{mutable v: [mutable option<T>]};
fn mk<T>() -> smallintmap<T> {
let v: [mutable option<T>] = [mutable];
ret @{mutable v: v};
}
fn f<T,U>() {
let sim = mk::<U>();
log(error, sim);
}
fn main() {
f::<int,int>();
}
|