summaryrefslogtreecommitdiff
path: root/test/files/pos/t4202.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t4202.scala')
-rw-r--r--test/files/pos/t4202.scala13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/files/pos/t4202.scala b/test/files/pos/t4202.scala
index dbedd0bf79..b2a0c0120a 100644
--- a/test/files/pos/t4202.scala
+++ b/test/files/pos/t4202.scala
@@ -1,7 +1,18 @@
-object t4202 {
+object t4202_1 {
() => {
trait T {
def t = ()
}
}
}
+
+object t4202_2 {
+ () => {
+ trait T {
+ def t = ()
+ }
+ object T2 extends T {
+ t
+ }
+ }
+}