sngrekov
01/18/2019, 9:02 PMdata class DataClassTest(val foo: String = "foo", val bar : Int = 1)
So in kotlin code I can initialize it with default properties like
DataClassTest(foo = "bar")
But when I try to use it the same way in swift
DataClassTest(foo : "bar")
I get an error "Cannot invoke initializer for type 'DataClassTest' with an argument list of type '(foo: String)'"
Am I missing something?russhwolf
01/18/2019, 9:45 PMsngrekov
01/18/2019, 9:52 PMsngrekov
01/18/2019, 9:55 PMKotlin constructors are imported as initializers to Swift/Objective-C.So, in this context default args != initializers, correct?
russhwolf
01/18/2019, 9:56 PMinit()
methods in Swift/Obj-Crusshwolf
01/18/2019, 9:57 PMsngrekov
01/18/2019, 10:02 PMInitializers there meansah, thanks, good to knowmethods in Swift/Obj-Cinit()
sngrekov
01/18/2019, 10:13 PMFor default parameters, I think it's because Obj-C doesn't have them, so Kotlin doesn't see them. Kotlin's Swift interop is only through Obj-C.Interesting.. That means we wont get any Kotlin goodies that ObjC doesn't have?
olonho
01/20/2019, 9:51 AMswift_name
attribute in generated headers)sngrekov
01/20/2019, 12:43 PMloganj
01/23/2019, 8:04 PM@JvmOverloads
is a thingloganj
01/23/2019, 8:06 PMsvyatoslav.scherbina
01/24/2019, 7:10 AM