A test for a default arg skip bug during the serialization.
This commit is contained in:
committed by
alexander-gorshenev
parent
07c5b2201c
commit
095cad4145
@@ -2246,6 +2246,12 @@ task serialized_vararg(type: LinkKonanTest) {
|
||||
goldValue = "17\n19\n23\n29\n31\nsize: 5\n"
|
||||
}
|
||||
|
||||
task serialized_default_args(type: LinkKonanTest) {
|
||||
source = "serialization/prop.kt"
|
||||
lib = "serialization/default_args.kt"
|
||||
goldValue = "SomeDataClass(first=17, second=666, third=23)\n"
|
||||
}
|
||||
|
||||
task testing_annotations(type: RunStandaloneKonanTest) {
|
||||
source = "testing/annotations.kt"
|
||||
flags = ['-tr']
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
inline val Int.prop get() = SomeDataClass(second = this)
|
||||
|
||||
data class SomeDataClass(val first: Int = 17, val second: Int = 19, val third: Int = 23)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
println(666.prop)
|
||||
}
|
||||
Reference in New Issue
Block a user