Test for obsolete KT-4869: Report error when inline parameter is passed to a function variable
#KT-4869 Obsolete
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
inline fun foo(f: () -> Unit) {
|
||||
val ff = { f: () -> Unit ->
|
||||
|
||||
}
|
||||
ff(<!USAGE_IS_NOT_INLINABLE!>f<!>)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
kotlin.inline() internal fun foo(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
Reference in New Issue
Block a user