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:
Roy Frostig 2010-06-29 16:13:26 -07:00
parent 17c293bbaa
commit e692ccfb0c
2 changed files with 12 additions and 0 deletions

View File

@ -325,6 +325,7 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \
test/run-pass/vec-slice.rs \
test/run-pass/fn-lval.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/mutable-alias-vec.rs \
test/run-pass/mutable-vec-drop.rs \
@ -370,6 +371,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
generic-drop-glue.rs \
generic-exterior-box.rs \
generic-fn-infer.rs \
generic-fn-twice.rs \
generic-fn.rs \
generic-obj-with-derived-type.rs \
generic-obj.rs \

View File

@ -0,0 +1,10 @@
// -*- rust -*-
mod foomod {
fn foo[T]() {}
}
fn main() {
foomod.foo[int]();
foomod.foo[int]();
}