报告类级别上前向引用的用法,这可能会导致类初始化期间出现意外行为。
示例:
class Test { val first: Int = second + 5 // 此处 second 为 0 val second: Int = 5 // first 是 5 而不是 10 }