Don't generate default arguments for inline call

This commit is contained in:
Mikhael Bogdanov
2017-04-27 15:38:11 +02:00
parent 7690a8bc3e
commit a7c9e14805
13 changed files with 81 additions and 62 deletions
@@ -0,0 +1,17 @@
//open modality to method handle check generation
open class A {
inline fun test(p: String = "OK"): String {
return p
}
}
fun box(): String {
return A().test()
}
//handler check in test$default
// 1 IFNULL
//mask check in test$default
// 1 IFEQ
//total ifs
// 2 IF