diff options
Diffstat (limited to 'tests/pos/i941.scala')
-rw-r--r-- | tests/pos/i941.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/i941.scala b/tests/pos/i941.scala new file mode 100644 index 000000000..75bf4e448 --- /dev/null +++ b/tests/pos/i941.scala @@ -0,0 +1,10 @@ +object Test { + + class C[A] { + + def this(y: A) = { this(); foo(y) } + + def foo(x: A): Unit = () + + } +} |