[FIR] Unwrap vararg array types for diagnostic rendering
#KT-65770 Fixed
This commit is contained in:
committed by
Space Team
parent
eae72eac54
commit
33648e1f44
@@ -88,11 +88,11 @@ actual fun f16(s: String = "") {}
|
||||
^^^^^^^^^^^^^^
|
||||
compiler/testData/multiplatform/incompatibleCallables/jvm.kt:28:12: error: 'actual fun f17(s: Array<out String>): Unit' has no corresponding expected declaration
|
||||
The following declaration is incompatible because some value parameter is vararg in one declaration and non-vararg in the other:
|
||||
expect fun f17(vararg s: Array<out String>): Unit
|
||||
expect fun f17(vararg s: String): Unit
|
||||
|
||||
actual fun f17(s: Array<out String>) {}
|
||||
^^^
|
||||
compiler/testData/multiplatform/incompatibleCallables/jvm.kt:29:12: error: 'actual fun f18(vararg s: Array<out String>): Unit' has no corresponding expected declaration
|
||||
compiler/testData/multiplatform/incompatibleCallables/jvm.kt:29:12: error: 'actual fun f18(vararg s: String): Unit' has no corresponding expected declaration
|
||||
The following declaration is incompatible because some value parameter is vararg in one declaration and non-vararg in the other:
|
||||
expect fun f18(s: Array<out String>): Unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user