test: Add test for #1763

This commit is contained in:
Brian Anderson 2012-04-12 17:12:48 -07:00
parent 8a7fd4a04f
commit 8c8db42fc5

View File

@ -0,0 +1,14 @@
// Issue #1763 - infer types correctly
// error-pattern:explicit failure
type actor<T> = {
unused: bool
};
fn act2<T>() -> actor<T> {
fail;
}
fn main() {
let a: actor<int> = act2();
}