Anonymous partial function in early initializer requires “premature access to class”

后端 未结 0 1159
盖世英雄少女心
盖世英雄少女心 2021-01-23 00:00

Why does this fail to compile:

trait Item

trait StringItem extends Item {
  def makeString: String
}

trait SomeOtherItem extends Item

trait DummyTrait

case c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题