One of my JvmTests complains that some parameters ...
# multiplatform
h
One of my JvmTests complains that some parameters to a constructor are missing. This is for an expect/actual class with 9 parameters in the constructor, but only the first three are needed, since the last 6 default to null. But the null values are set in the
expect
declaration, since
actual
functions cannot have default argument values. I have the
@JvmOverloads
annotation in the actual implementation (Idea warns me it has no effect since there are no default arguments), and also tried to include it in the expect implementation (no warning from Idea), but to no avail. So my test doesn't compile and cannot run ... What did I miss?
It actually works just fine from the CLI and when i click in the project structure window and select «run all tests», but it refuses to run when I click the little green arrow in the gutter. The constructor call and the class is marked with red by Idea.