diff options
Diffstat (limited to 'tests/pos/t1832.scala')
-rw-r--r-- | tests/pos/t1832.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/t1832.scala b/tests/pos/t1832.scala new file mode 100644 index 000000000..9ad9703c2 --- /dev/null +++ b/tests/pos/t1832.scala @@ -0,0 +1,10 @@ +trait Cloning { + trait Foo + def fn(g: Any => Unit): Foo + + class Star { def *(a: Cloning.this.Foo): Cloning.this.Foo } + + implicit def mkStar(i: Int): Star = new Star { def *(a: Foo): Foo = null } + + val pool = 4 * fn { case ghostSYMBOL: Int => ghostSYMBOL * 2 } +} |