FIR Java: add default constructors
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
public open class Annotated : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open operator fun foo(@R|org/jetbrains/annotations/Nullable|() param: R|kotlin/String|?): R|kotlin/String|
|
||||
|
||||
public constructor(): R|Annotated|
|
||||
|
||||
}
|
||||
|
||||
+4
@@ -1,8 +1,12 @@
|
||||
public open class Annotated : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open operator fun foo(@R|org/jetbrains/annotations/Nullable|() param: R|kotlin/String|?): R|kotlin/String|
|
||||
|
||||
public constructor(): R|Annotated|
|
||||
|
||||
}
|
||||
public open class AnnotatedDerived : R|Annotated| {
|
||||
public open operator fun foo(param: R|kotlin/String|?): R|kotlin/String|
|
||||
|
||||
public constructor(): R|AnnotatedDerived|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
public open class Some : R|kotlin/Any| {
|
||||
public constructor(): R|Some|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
public open class A<T> : R|kotlin/Any| {
|
||||
public open operator fun foo(t: R|ft<T, T?>|!): R|ft<T, T?>|!
|
||||
|
||||
public constructor<T>(): R|A<T>|
|
||||
|
||||
}
|
||||
|
||||
@@ -3,4 +3,6 @@ public open class Some : R|kotlin/Any| {
|
||||
|
||||
public open operator fun bar(arr: R|kotlin/IntArray|): R|kotlin/Array<ft<kotlin/String, kotlin/String?>>|
|
||||
|
||||
public constructor(): R|Some|
|
||||
|
||||
}
|
||||
|
||||
@@ -3,4 +3,6 @@ public open class JavaClass : R|kotlin/Any| {
|
||||
|
||||
public open operator fun getText(param: R|ft<kotlin/String, kotlin/String?>|!): R|ft<kotlin/String, kotlin/String?>|!
|
||||
|
||||
public constructor(): R|JavaClass|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FILE: Test.kt
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
lval jc: <ERROR TYPE REF: Unresolved name: JavaClass> = <Unresolved name: JavaClass>#()
|
||||
lval result: <ERROR TYPE REF: Unresolved name: text> = R|<local>/jc|.<Unresolved name: text>#
|
||||
lval jc: R|JavaClass| = R|/JavaClass.JavaClass|()
|
||||
lval result: R|ft<kotlin/String, kotlin/String?>|! = R|<local>/jc|.R|/JavaClass.text|
|
||||
}
|
||||
public final fun otherTest(jc: R|JavaClass|): R|kotlin/Unit| {
|
||||
lval result: R|ft<kotlin/String, kotlin/String?>|! = R|<local>/jc|.R|/JavaClass.text|
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
public open class Inheritor : R|Second| {
|
||||
public open operator fun R|First|.foo(first: R|kotlin/String|, s: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|Inheritor|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
public open class Inheritor : R|kotlin/Any|, R|Base| {
|
||||
public open operator fun getX(): R|kotlin/Int|
|
||||
|
||||
public constructor(): R|Inheritor|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
public open class Some : R|kotlin/Any|, R|Strange<*>| {
|
||||
public open operator fun foo(): R|kotlin/Any|
|
||||
|
||||
public constructor(): R|Some|
|
||||
|
||||
}
|
||||
|
||||
@@ -3,4 +3,6 @@ public open class A : R|kotlin/Any| {
|
||||
|
||||
public open operator fun bar(): R|ft<A, A?>|!
|
||||
|
||||
public constructor(): R|A|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user