New minimal test for current stage2 blocker.

This commit is contained in:
Graydon Hoare 2011-04-22 02:07:31 +00:00
parent 540344acb9
commit 3b047bad6e

View file

@ -0,0 +1,17 @@
// xfail-stage0
obj ob[K](K k) {
iter foo() -> @tup(K) {
put @tup(k);
}
}
fn x(&ob[str] o) {
for each (@tup(str) i in o.foo()) {
}
}
fn main() {
auto o = ob[str]("hi" + "there");
x(o);
}