serebit
07/01/2019, 5:26 AMinternal expect class WeakReference<T>(reference: T) {
fun get(): T?
}
I want to define an actual typealias
on kotlin.native.ref.WeakReference
for the linuxx64 source set. When I declare it as such, the compiler complains that `visibility is different`:
internal actual typealias WeakReference<T> = kotlin.native.ref.WeakReference<T>
When I remove internal
, the compiler still complains that visibility is different
. Should I report this?svyatoslav.scherbina
07/01/2019, 8:56 AMinternal
from both expect
and actual
?serebit
07/01/2019, 5:58 PMserebit
07/01/2019, 7:26 PMinternal
from both expect
and actual
. It's only when they're both internal
that the error manifests. @svyatoslav.scherbinasvyatoslav.scherbina
07/02/2019, 9:20 AM