diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/i239-packageObj.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/i239-packageObj.scala b/tests/pos/i239-packageObj.scala new file mode 100644 index 000000000..057bc1eec --- /dev/null +++ b/tests/pos/i239-packageObj.scala @@ -0,0 +1,11 @@ +package p { + class C[A] { def foo: A = ??? } + + object `package` extends C[String] +} + +object test { + + val x: String = p.foo + +} |