Add (XFAILed) testcase for typechecker issue where fns-in-mods appear to lose their type parameters over the course of the typechecking pass.
This commit is contained in:
parent
17c293bbaa
commit
e692ccfb0c
|
@ -325,6 +325,7 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \
|
||||||
test/run-pass/vec-slice.rs \
|
test/run-pass/vec-slice.rs \
|
||||||
test/run-pass/fn-lval.rs \
|
test/run-pass/fn-lval.rs \
|
||||||
test/run-pass/generic-fn-infer.rs \
|
test/run-pass/generic-fn-infer.rs \
|
||||||
|
test/run-pass/generic-fn-twice.rs \
|
||||||
test/run-pass/generic-recursive-tag.rs \
|
test/run-pass/generic-recursive-tag.rs \
|
||||||
test/run-pass/mutable-alias-vec.rs \
|
test/run-pass/mutable-alias-vec.rs \
|
||||||
test/run-pass/mutable-vec-drop.rs \
|
test/run-pass/mutable-vec-drop.rs \
|
||||||
|
@ -370,6 +371,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
|
||||||
generic-drop-glue.rs \
|
generic-drop-glue.rs \
|
||||||
generic-exterior-box.rs \
|
generic-exterior-box.rs \
|
||||||
generic-fn-infer.rs \
|
generic-fn-infer.rs \
|
||||||
|
generic-fn-twice.rs \
|
||||||
generic-fn.rs \
|
generic-fn.rs \
|
||||||
generic-obj-with-derived-type.rs \
|
generic-obj-with-derived-type.rs \
|
||||||
generic-obj.rs \
|
generic-obj.rs \
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
// -*- rust -*-
|
||||||
|
|
||||||
|
mod foomod {
|
||||||
|
fn foo[T]() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
foomod.foo[int]();
|
||||||
|
foomod.foo[int]();
|
||||||
|
}
|
Loading…
Reference in New Issue