summaryrefslogtreecommitdiff
path: root/test/pending/pos/t1832.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/t1832.scala')
-rw-r--r--test/pending/pos/t1832.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pending/pos/t1832.scala b/test/pending/pos/t1832.scala
new file mode 100644
index 0000000000..bca863f4bd
--- /dev/null
+++ b/test/pending/pos/t1832.scala
@@ -0,0 +1,10 @@
+// Edit by paulp: reduced.
+trait Cloning {
+ trait Foo
+ def fn(g: Int => Unit): Foo
+
+ implicit def mkStar(i: Int) = new { def *(a: Foo): Foo = null }
+
+ val pool1 = 4 * fn { case i => i * 2 }
+ val pool2 = 4 * fn { case i: Int => i * 2 }
+}