Hi, seems reified type parameters don't work with ...
# kotlin-native
n
Hi, seems reified type parameters don't work with the latest kotlin version 1.3.60-dev-2413. Tell me if I should create issue
Copy code
inline fun <reified T> to(): T? = null
Copy code
> Task :linkMyLibDebugFrameworkIos
Undefined symbols for architecture x86_64:
  "_kfun:<http://com.mylib.utils.jkob.to|com.mylib.utils.jkob.to>()Generic", referenced from:
      ___unnamed_1085 in result.o
ld: symbol(s) not found for architecture x86_64
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
On the previous version that I used 1.3.60-dev-2303, this sample worked well.
o
this kind of code is not supported in interop, as it's impossible to properly reify type parameter in interop case, remove
reified
👌 1
s
Note that this link error is temporary and already fixed on master. Generally everything should compile if you have public Kotlin inline functions with reified parameters but don’t call them from Swift.