5ab05e6e47
When there's an explicit one ^KT-39028 Fixed
34 lines
1.3 KiB
Plaintext
Vendored
34 lines
1.3 KiB
Plaintext
Vendored
FILE: main.kt
|
|
public abstract interface A : R|kotlin/Any| {
|
|
}
|
|
public final val R|A|.foo: R|kotlin/Int|
|
|
public get(): R|kotlin/Int| {
|
|
^ Int(1)
|
|
}
|
|
public final fun bar(a: R|A|): R|kotlin/Unit| {
|
|
R|<local>/a|.R|/foo|.R|tests/_checkType/checkType|<R|kotlin/Int|>(checkType@fun R|tests/_checkType/Inv<kotlin/Int>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.R|tests/_checkType/_|<R|kotlin/Int|>()
|
|
}
|
|
)
|
|
}
|
|
public final fun R|JavaClass|.bar(a: R|A|): R|kotlin/Unit| {
|
|
R|<local>/a|.R|/foo|.R|tests/_checkType/checkType|<R|kotlin/Int|>(checkType@fun R|tests/_checkType/Inv<kotlin/Int>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.R|tests/_checkType/_|<R|kotlin/Int|>()
|
|
}
|
|
)
|
|
}
|
|
FILE: CHECK_TYPE.kt
|
|
public final fun <T> checkSubtype(t: R|T|): R|T| {
|
|
^checkSubtype R|<local>/t|
|
|
}
|
|
public final class Inv<T> : R|kotlin/Any| {
|
|
public constructor<T>(): R|tests/_checkType/Inv<T>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
public final fun <E> R|tests/_checkType/Inv<E>|._(): R|kotlin/Unit| {
|
|
}
|
|
public final infix fun <T> R|T|.checkType(f: R|tests/_checkType/Inv<T>.() -> kotlin/Unit|): R|kotlin/Unit| {
|
|
}
|