blob: 1624e3025e06f6fc76346f6a85a0aa6b20076d5f (
plain) (
tree)
|
|
object Foo { private def bar(): Int = 55 }
class Foo(x: Int) { def this() = this(Foo.bar()) }
/*
* scalac28 a.scala
a.scala:2: error: method bar cannot be accessed in object Foo
class Foo(x: Int) { def this() = this(Foo.bar()) }
^
one error found
*/
|