trait Base { val x: Int; val y: Int; var z: Int; } class Sub() extends Base { val x: Int = 1; val y: Int = 2; var z: Int = 3; }