can we do expect-actual with a modifier other than...
# getting-started
m
can we do expect-actual with a modifier other than
public
when declaring the expect method? I can't find any docs mention it but maybe I'm just blind. the expect function on
commonMain
is something like this, but it seems like I got an error on the actual declaration.
Copy code
internal expect class WeakReference<T : Any>(referred: T) { ... }
👍 1
nvm it was something to do with the
typealias
instead. still don't really know why I can't set modifier to internal tho and the error somewhat missleading(?)