diff options
| author | Roy Frostig <[email protected]> | 2010-06-29 16:13:26 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-06-29 16:13:26 -0700 |
| commit | e692ccfb0c768658f13d3cf7887efd53e14f0416 (patch) | |
| tree | e0828815c4fc90c25dcc3124f3bce3977294752c /src/test | |
| parent | Merge branch 'master' of [email protected]:graydon/rust (diff) | |
| download | rust-e692ccfb0c768658f13d3cf7887efd53e14f0416.tar.xz rust-e692ccfb0c768658f13d3cf7887efd53e14f0416.zip | |
Add (XFAILed) testcase for typechecker issue where fns-in-mods appear to lose their type parameters over the course of the typechecking pass.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/generic-fn-twice.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/generic-fn-twice.rs b/src/test/run-pass/generic-fn-twice.rs new file mode 100644 index 00000000..0c6257f8 --- /dev/null +++ b/src/test/run-pass/generic-fn-twice.rs @@ -0,0 +1,10 @@ +// -*- rust -*- + +mod foomod { + fn foo[T]() {} +} + +fn main() { + foomod.foo[int](); + foomod.foo[int](); +} |