c80cfb0fdb
This big refactoring is needed to cleanup building of overrides
mappings and prevent creating redundant intersection overrides in
cases when there is no need in them:
```kotlin
interface A {
fun foo()
}
interface B {
fun foo()
}
interface C : A, B {
override fun foo()
}
```
Before this refactoring there was next override tree:
C.foo
intersection override (A.foo, B.foo)
A.foo
B.foo
Also this commit fixes special mapping of overrides in jvm scopes
for declarations which have kotlin builtins in supertypes with
special java mapping rules (collections, for example)
24 lines
517 B
Plaintext
Vendored
24 lines
517 B
Plaintext
Vendored
FILE: main.kt
|
|
public abstract class A : R|kotlin/Any| {
|
|
public constructor(): R|A| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public open val x: R|kotlin/Int|
|
|
public get(): R|kotlin/Int| {
|
|
^ Int(1)
|
|
}
|
|
|
|
public open val y: R|kotlin/Int|
|
|
public get(): R|kotlin/Int| {
|
|
^ Int(2)
|
|
}
|
|
|
|
}
|
|
public final class DImpl : R|D| {
|
|
public constructor(): R|DImpl| {
|
|
super<R|D|>()
|
|
}
|
|
|
|
}
|