aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2127.scala
blob: 88cc9e7081ab19ba035134f943c31d6d2a7b4e06 (plain) (blame)
1
2
3
4
5
class Foo private (val value : Int)

abstract class Bar(val ctor : (Int) => Foo)

object Foo extends Bar(new Foo(_)) //<--- ILLEGAL ACCESS