mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Private suspend functions need to be generated as package-local, since they are called from their continuations. However, this means that they can be called from Java, which breaks their private visibility. Adding synthetic to them fixes the issue. #KT-17584: Fixed
6 lines
75 B
Kotlin
Vendored
6 lines
75 B
Kotlin
Vendored
private suspend fun foo() {}
|
|
|
|
class A {
|
|
private suspend fun foo() {}
|
|
}
|