mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
- Inline protected constants from Java at use sites - Do not create accessors for private constants in Kotlin #KT-11734 In Progress
16 lines
228 B
Kotlin
Vendored
16 lines
228 B
Kotlin
Vendored
// FILE: Foo.kt
|
|
|
|
private const val OUTER_PRIVATE = 20
|
|
|
|
class Foo {
|
|
companion object {
|
|
private const val LOCAL_PRIVATE = 20
|
|
}
|
|
|
|
fun foo() {
|
|
LOCAL_PRIVATE
|
|
OUTER_PRIVATE
|
|
}
|
|
}
|
|
|
|
// 0 INVOKESTATIC |