summaryrefslogtreecommitdiff
path: root/test/files/pos/t2127.scala
blob: d6244c14a2f56f85bee4d109c8acc43b867cc0d6 (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