Skolson5903
11/26/2021, 5:50 PMexpect class Anything(
arg1: String,
arg2: String = ""
) { ... }
actual class Anything(
arg1: String,
arg2: String
) { ... }
val x = Anything("x")
Every usage like this compiles fine in gradle and runs fine, but the IDE wrongly shows the assignment statement as a syntax error. The IDE inspection is going by the actual syntax which is not allowed to duplicate the default value defined in the expect.
I have enough of these that the IDE defect is making me never want to use arguments with default values in an expect class again :-)CLOVIS
11/30/2021, 6:05 PM