Fix modifier order in generated overriden functions
Fixes #KT-21600
This commit is contained in:
committed by
Alexander Udalov
parent
99be75cbfc
commit
8bc020f31b
@@ -7,13 +7,13 @@ Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:1:1: error: actual function 'plus' has no corresponding expected declaration
|
||||
The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (external, infix, inline, operator, tailrec):
|
||||
public infix expect fun Int.plus(s: CharSequence): Int
|
||||
public expect infix fun Int.plus(s: CharSequence): Int
|
||||
|
||||
actual fun Int.plus(s: CharSequence): Int = 0
|
||||
^
|
||||
compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:3:1: error: actual function 'times' has no corresponding expected declaration
|
||||
The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (external, infix, inline, operator, tailrec):
|
||||
public operator expect fun Double.times(x: CharArray): Unit
|
||||
public expect operator fun Double.times(x: CharArray): Unit
|
||||
|
||||
actual fun Double.times(x: CharArray) {}
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user