Skip to content

Commit 0abccc6

Browse files
committed
Add a test case for calling generic functions taking alias args with box types
1 parent a4f8de3 commit 0abccc6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// xfail-boot
2+
// xfail-stage0
3+
4+
fn id[T](&T t) -> T {
5+
ret t;
6+
}
7+
8+
fn main() {
9+
auto expected = @100;
10+
auto actual = id[@int](expected);
11+
log *actual;
12+
check (*expected == *actual);
13+
}

0 commit comments

Comments
 (0)