K2 Scripting: allow script top level inline functions
This commit is contained in:
committed by
Space Team
parent
86b3e65d19
commit
7484ccb9ee
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
|
||||
// expected: rv: 2
|
||||
inline fun foo(l: (Int) -> Int ): Int {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
inline fun foo(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
Reference in New Issue
Block a user