TEST: test for inlining added
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
@Suppress("NOTHING_TO_INLINE")
|
||||||
|
inline fun foo(i: Int): Int {
|
||||||
|
return i + 1
|
||||||
|
}
|
||||||
|
|
||||||
|
fun bar(i: Int): Int {
|
||||||
|
return foo(i)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
println(bar(1).toString())
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user