https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

ribesg

02/19/2019, 9:17 AM
Copy code
fun cinterops(action: NamedDomainObjectContainer<DefaultCInteropSettings>.() -> Unit) = cinterops.action()
fun cinterops(action: Action<NamedDomainObjectContainer<DefaultCInteropSettings>>) = action.execute(cinterops)
These functions of
KotlinNativeCompilation
are identical and I can’t call any of them because both match anything I write, any idea?
n

nestserau

02/19/2019, 9:20 AM
Well, the first one takes a closure and the second takes an object. So not totally identical?
I guess you can distinguish between them by first declaring a constant with an explicit type, rather than inlining.
r

ribesg

02/19/2019, 9:22 AM
Ok I finally found a way that works
n

nestserau

02/19/2019, 12:30 PM
Cool. What editor do you use?
r

ribesg

02/19/2019, 12:53 PM
IntelliJ with Materiel Design UI
n

nestserau

02/19/2019, 1:03 PM
Thanks.
2 Views