Support default parameter values for inline class constructors and funs
#KT-26908 #KT-26554 Move default parameter value tests to separate directory
This commit is contained in:
compiler/testData/diagnostics/tests/inlineClasses/inlineClassConstructorParameterWithDefaultValue.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
inline class Test(val x: Int = 42)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package
|
||||
|
||||
public final inline class Test {
|
||||
public constructor Test(/*0*/ x: kotlin.Int = ...)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user