Scala 2 to Scala 3: Instantiating a trait no longer recognises new methods The following code compiles and runs in Scala 2: