More cases supported for inline functions: namespace level functions with parameters (not blocks)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
fun box() : Boolean {
|
||||
val t = myInlineFun(1 == 2)
|
||||
val f = myInlineFun(1 == 2)
|
||||
return t and f
|
||||
}
|
||||
|
||||
inline fun myInlineFun(t : Boolean) = !t
|
||||
Reference in New Issue
Block a user