val foo = object(a: Int, b: String) {} val foo = object(a: Int, b: String) : Bar { } val foo = object(a: Int, b: String)