[FIR] Don't print function's default value parameters
...in `ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT` diagnostic message. ^KT-62585
This commit is contained in:
committed by
Space Team
parent
0f0540cda0
commit
601c517887
+1
@@ -25,6 +25,7 @@ internal object FirExpectActualAnnotationIncompatibilityDiagnosticRenderers {
|
||||
annotationRenderer = null,
|
||||
modifierRenderer = null,
|
||||
contractRenderer = null,
|
||||
valueParameterRenderer = FirValueParameterRendererNoDefaultValue(),
|
||||
).renderElementAsString(it.fir, trim = true)
|
||||
// Write property accessors on the same line as the property
|
||||
.run { replace(Printer.LINE_SEPARATOR, "") }
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ expect fun foo(p: Array<Int> = arrayOf())
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
<!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>actual fun <!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT("fun foo(p: Array<Int> = R|arrayOf|<Int>()): Unit; fun foo(p: Array<Int>): Unit; Annotation `@Ann()` is missing on actual declaration")!>foo<!>(p: Array<Int>) {}<!>
|
||||
<!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>actual fun <!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT("fun foo(p: Array<Int> = ...): Unit; fun foo(p: Array<Int>): Unit; Annotation `@Ann()` is missing on actual declaration")!>foo<!>(p: Array<Int>) {}<!>
|
||||
|
||||
Reference in New Issue
Block a user