Correctly apply SAM conversions in superclass constructor calls

#KT-5452 Fixed
This commit is contained in:
Dmitry Jemerov
2015-03-25 15:13:47 +01:00
parent da9fe7d9a9
commit 827d9d48c1
16 changed files with 117 additions and 11 deletions
@@ -0,0 +1,8 @@
var status: String = "fail" // global property to avoid issues with accessing closure from local class (KT-4174)
fun box(): String {
class C() : JavaClass({status = "OK"}) {}
C().run()
return status
}