[FIR builder] add test for vararg parameter without type
^KT-61422
This commit is contained in:
committed by
Space Team
parent
2566dabfce
commit
c0c1966555
+1
@@ -0,0 +1 @@
|
||||
class X(vararg x) {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: noParameterTypRefInPrimaryConstructorWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? constructor(vararg x: <ERROR TYPE REF: No type for parameter>): R|X| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: noParameterTypRefInPrimaryConstructorWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? [ContainingClassKey=X] constructor(vararg x: <ERROR TYPE REF: No type for parameter>): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class X(vararg val x) {}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
FILE: noParameterTypRefInPrimaryConsturctorValWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? constructor(vararg x: <ERROR TYPE REF: No type for parameter>): R|X| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public? final? val x: <ERROR TYPE REF: No type for parameter> = R|<local>/x|
|
||||
public? get(): <ERROR TYPE REF: No type for parameter>
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
FILE: noParameterTypRefInPrimaryConsturctorValWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? [ContainingClassKey=X] constructor([CorrespondingProperty=/X.x] vararg x: <ERROR TYPE REF: No type for parameter>): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public? final? [IsFromPrimaryConstructor=true, IsFromVarargKey=true] val x: <ERROR TYPE REF: No type for parameter> = R|<local>/x|
|
||||
public? [ContainingClassKey=X] get(): <ERROR TYPE REF: No type for parameter>
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class X(vararg x:) {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: uncompletedTypRefInPrimaryConstructorWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? constructor(vararg x: <ERROR TYPE REF: Incomplete code>): R|X| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: uncompletedTypRefInPrimaryConstructorWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? [ContainingClassKey=X] constructor(vararg x: <ERROR TYPE REF: Incomplete code>): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class X(vararg val x:) {}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
FILE: uncompletedTypRefInPrimaryConsturctorValWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? constructor(vararg x: <ERROR TYPE REF: Incomplete code>): R|X| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public? final? val x: <ERROR TYPE REF: Incomplete code> = R|<local>/x|
|
||||
public? get(): <ERROR TYPE REF: Incomplete code>
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
FILE: uncompletedTypRefInPrimaryConsturctorValWithVararg.kt
|
||||
public? final? class X : R|kotlin/Any| {
|
||||
public? [ContainingClassKey=X] constructor([CorrespondingProperty=/X.x] vararg x: <ERROR TYPE REF: Incomplete code>): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public? final? [IsFromPrimaryConstructor=true, IsFromVarargKey=true] val x: <ERROR TYPE REF: Incomplete code> = R|<local>/x|
|
||||
public? [ContainingClassKey=X] get(): <ERROR TYPE REF: Incomplete code>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user