Add test for obsolete issue
#KT-1936 Obsolete
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
var result = "Fail"
|
||||
|
||||
trait MyTrait
|
||||
{
|
||||
var property : String
|
||||
fun foo() {
|
||||
result = property
|
||||
}
|
||||
}
|
||||
|
||||
open class B(param : String) : MyTrait
|
||||
{
|
||||
override var property : String = param
|
||||
override fun foo() {
|
||||
super.foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val b = B("OK")
|
||||
b.foo()
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user