JVM: Only produce inline SAM wrappers in public inline scope
This commit is contained in:
committed by
Alexander Udalov
parent
50bbf4f269
commit
c9b0cc5b32
@@ -0,0 +1,11 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: SAM_CONVERSIONS=CLASS
|
||||
// WITH_SIGNATURES
|
||||
package test
|
||||
|
||||
// We used to generate SAM adapters inside of inline lambdas as
|
||||
// inline SAM wrappers (`...$sam$i$...`). This is unnecessary, unless
|
||||
// the code is itself contained in an inline function.
|
||||
fun test() {
|
||||
val lambda = { }
|
||||
1.apply { Runnable(lambda) }
|
||||
}
|
||||
Reference in New Issue
Block a user