Test framework for inline
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
mfun{ "".toLowerCase2() }
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
inline fun <R> mfun(f: () -> R) {
|
||||
f()
|
||||
f()
|
||||
}
|
||||
|
||||
public inline fun String.toLowerCase2() : String = ""
|
||||
Reference in New Issue
Block a user