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,10 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: SAM_CONVERSIONS=CLASS
|
||||
// WITH_SIGNATURES
|
||||
package test
|
||||
|
||||
// SAM adapters inside of private inline functions don't need to be public,
|
||||
// since we do not refer to them from other packages.
|
||||
fun test() {
|
||||
val lambda = { }
|
||||
1.apply { Runnable(lambda) }
|
||||
}
|
||||
Reference in New Issue
Block a user