Minor, add test for obsolete issue

#KT-3587 Obsolete
This commit is contained in:
Alexander Udalov
2014-11-18 11:09:50 +03:00
parent 7d43f39c80
commit a6d759ff96
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,10 @@
open class Variable {
val lightVar: LightVariable = if (this is LightVariable) this else LightVariable()
}
class LightVariable() : Variable()
fun box(): String {
Variable()
return "OK"
}