Files
kotlin-fork/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt
T
Vladimir Sukharev 924898afb7 [K/N] KFC-446: K2 platform: Native alpha
Merge-request: KT-MR-7905
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-01-04 16:10:40 +00:00

22 lines
674 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JS_IR, NATIVE
// FILE: lib.kt
interface ResolutionScope {
fun getContributedDescriptors(s: String = "OK"): String
}
// processing deprecatedScopes.kt before scopes.kt should show that there is no problem in processing delegated members after fake overrides
// FILE: deprecatedScopes.kt
abstract class DeprecatedLexicalScope(a: LexicalScope) : LexicalScope by a
// FILE: scopes.kt
interface LexicalScope : ResolutionScope
// FILE: main.kt
class ScopeImpl : LexicalScope {
override fun getContributedDescriptors(s: String): String = s
}
class Impl : DeprecatedLexicalScope(ScopeImpl())
fun box(): String = Impl().getContributedDescriptors()