Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从另一个对象继承一个对象:
object ws1 { object Obj1 object Obj2 extends Obj1 }
它抱怨:not found type Obj1
not found type Obj1
您不能继承表单对象。将您的代码更改为以下内容,您应该比以前更快乐:
object ws1 { class Obj1 object Obj1 extends Obj1 object Obj2 extends Obj1 }