Test data fixed: replace trait with interface

This commit is contained in:
Michael Bogdanov
2015-05-18 11:53:59 +03:00
parent 119ffd2347
commit 226350b4ba
2 changed files with 4 additions and 4 deletions
@@ -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