I\'d like override one mutable variable in Trait in constructor. But it will complain that \"overriding variable a in trait A of type Int; variable a cannot override a mutab
try use val instead of var and use override. It work when A is abstract class, Like this:
abstract class A{ val a:Int = 0 } class B extends A{ override val a:Int=1 }