class Foo(bar: String) {
import Foo.Bar
def this() = this(Bar) // this line fails, it seems I can only do
// def this() = this(Foo.Bar)
}
object Foo {
val Bar = "Hello Bar"
}
は基本的に、どのように私は私import Foo.Bar
後Bar
を使用しない、最終的な静的変数使用して、私は本当に毎回Foo.Bar
を呼び出す必要がありますか?スカラ座、