FIR: Add test on delegated member with default param in overridden...
sensitive to the file processing order, therefore failing on the current fir2ir at least with the new irBuiltIns
This commit is contained in:
committed by
TeamCityServer
parent
a2385b5edd
commit
c9b6847d83
@@ -0,0 +1,20 @@
|
||||
// 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()
|
||||
Reference in New Issue
Block a user