:wave: I asked this on twitter a few days ago but ...
# kotlin-native
e
👋 I asked this on twitter a few days ago but figured I’d come straight to the source and see if anyone here had any bright ideas:
NSString.create
returns an
NSString
, but I’m getting
cast will never succeed
errors when I try to do a cast from
NSString
to a kotlin string
l
Please, do it in one message next time. Isn't there a
toKString()
extension function?
e
I’ll double check but I think I looked for that and didn’t see it
Yeah no dice.
And sorry I’ll try to do it all in one thing before - other slacks I’m in hate it when you do a wall of text but good to know y’all prefer it 🙂
l
It just helps with threads when you have so many users into the slack, and also, we get all the information at our disposal to reply, or know that we don't know 🙂
Maybe @olonho can help you with this then
s
This warning doesn’t look like an error to me. Does it prevent your program from being compiled?
e
IIRC it didn’t prevent compilation but it also seemed like something that was worth addressing.
s
Ok. Thank you for the report, it is known issue. As for now you can ignore or suppress this warning.
👍 1