Files
kotlin/compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/common.kt
Alexander Udalov 97314d010d Serialize default argument values presence for actual declarations correctly
When default argument value was present in the expected declaration, we
did not correctly serialize that fact to the metadata for the actual
declaration (`declaresDefaultValue` was used). Therefore, it was
impossible to use that actual declaration without passing all parameter
values in another module, where it was seen as a deserialized descriptor

 #KT-21913
2018-02-08 14:11:57 +01:00

10 lines
226 B
Kotlin
Vendored

package lib
expect fun foo(x: Int, y: String = "OK")
expect class C(x: Int, y: String = "OK")
expect annotation class Anno1(val x: Int, val y: String = "OK")
expect annotation class Anno2(val x: Int, val y: String = "OK")