andreasmattsson
04/24/2018, 3:02 PMexpect declaration should look like in order to be able to use the following (delegating to Gson) type annotation on my (cross-platform/shared) data models:
actual typealias SerializedName = com.google.gson.annotations.SerializedName
this: expect annotation class SerializedName(val value: String, val alternate: Array<String> = [])
results in error: Parameter 'alternate' has conflicting values in the expected and actual annotationandreasmattsson
04/24/2018, 3:20 PMarrayOf() instead of [], but it doesn't make a difference and the linter suggests changing it to [])Gabriel Ittner
04/24/2018, 3:27 PMandreasmattsson
04/24/2018, 3:35 PM@SerializedName("value", []). Ugly, but works.