mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Use INACCESSIBLE_OUTER_CLASS_EXPRESSION error for marking already resolved elements #KT-3261 Fixed
12 lines
343 B
Kotlin
12 lines
343 B
Kotlin
open class Test {
|
|
class object {
|
|
fun testStatic(ic: InnerClass): NotInnerClass = NotInnerClass(ic.value)
|
|
}
|
|
|
|
fun test(): InnerClass = InnerClass(150)
|
|
|
|
inner open class InnerClass(val value: Int)
|
|
open class NotInnerClass(val value: Int)
|
|
}
|
|
|
|
fun box() = if (Test.testStatic(Test().test()).value == 150) "OK" else "FAIL" |