diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/contrib467.scala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/pos/contrib467.scala b/test/files/pos/contrib467.scala new file mode 100644 index 0000000000..86d456ad30 --- /dev/null +++ b/test/files/pos/contrib467.scala @@ -0,0 +1,22 @@ +abstract class M +{ + val data: List[M] +} + +object Test +{ + def main(args: Array[String]): Unit = + { + object SA extends M + { + val data = List() + } + + object SB extends M + { + val data = List(SA) + } + + () + } +} |