FIR: fix resolve of function type & its parameters in supertype position
This commit is contained in:
@@ -4,7 +4,7 @@ FILE: derivedClass.kt
|
||||
|
||||
}
|
||||
<T : Any> public? final class Derived() : Base<T> {
|
||||
public? constructor(x: T)STUB
|
||||
public? constructor(x: T): super(STUB)
|
||||
|
||||
}
|
||||
<T : Any> public? final? function create(x: T): Derived<T> {
|
||||
|
||||
@@ -5,7 +5,7 @@ FILE: nestedClass.kt
|
||||
}
|
||||
public? final class Outer() {
|
||||
public? final class Derived() : Base {
|
||||
public? constructor(s: String)STUB
|
||||
public? constructor(s: String): super(STUB)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
interface KMutableProperty1<T> : KProperty1<T>
|
||||
|
||||
interface KProperty1<T> : (T) -> Int
|
||||
|
||||
|
||||
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
FILE: ft.kt
|
||||
<T> public? abstract interface KMutableProperty1() : R|KProperty1<T>| {
|
||||
}
|
||||
<T> public? abstract interface KProperty1() : R|(T) -> kotlin/Int| {
|
||||
}
|
||||
@@ -6,3 +6,11 @@ fun <T, R> List<T>.simpleMap(f: (T) -> R): R {
|
||||
|
||||
fun <T> simpleWith(t: T, f: T.() -> Unit): Unit = t.f()
|
||||
|
||||
interface KMutableProperty1<T, R> : KProperty1<T, R>, KMutableProperty<R>
|
||||
|
||||
interface KProperty1<T, out R> : KProperty<R>, (T) -> R
|
||||
|
||||
interface KProperty<out R>
|
||||
|
||||
interface KMutableProperty<R>
|
||||
|
||||
|
||||
@@ -7,3 +7,11 @@ FILE: functionTypes.kt
|
||||
<T> public? final? function simpleWith(t: R|T|, f: R|T.() -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
STUB
|
||||
}
|
||||
<T, R> public? abstract interface KMutableProperty1() : R|KProperty1<T, R>|, R|KMutableProperty<R>| {
|
||||
}
|
||||
<T, out R> public? abstract interface KProperty1() : R|KProperty<R>|, R|(T) -> R| {
|
||||
}
|
||||
<out R> public? abstract interface KProperty() {
|
||||
}
|
||||
<R> public? abstract interface KMutableProperty() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user