Add test for obsolete issue

#KT-1936 Obsolete
This commit is contained in:
Alexander Udalov
2014-03-27 03:06:59 +04:00
parent 3962064bd2
commit 0deea6b83c
2 changed files with 28 additions and 0 deletions
@@ -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
}