KT-10747 "Incompatible stack heights" when compiling call to Java setter with non-void return type using property syntax

#KT-10747 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-01-20 20:14:58 +03:00
parent d2d0f399db
commit 3a7ed33de1
6 changed files with 55 additions and 0 deletions
@@ -0,0 +1,7 @@
fun box(): String {
val javaClass = JavaClass()
if (javaClass.x.isEmpty()) {
javaClass.x = "OK"
}
return javaClass.x
}