Test data fixed: replace trait with interface
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
open class Persistent(val p: String)
|
||||
trait Hierarchy<T: Persistent > where T : Hierarchy<T>
|
||||
interface Hierarchy<T: Persistent > where T : Hierarchy<T>
|
||||
|
||||
class Location(): Persistent("OK"), Hierarchy<Location>
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
trait First
|
||||
trait Some<T: First> where T : Some<T>
|
||||
interface First
|
||||
interface Some<T : First> where T : Some<T>
|
||||
|
||||
val a: Some<*>? = null
|
||||
|
||||
class MClass(val p: String): First, Some<MClass>
|
||||
class MClass(val p: String) : First, Some<MClass>
|
||||
|
||||
fun box(): String {
|
||||
return MClass("OK").p
|
||||
|
||||
Reference in New Issue
Block a user