Fix for KT-9364: M13 Wrong compiler error for "unable to inline function"
#KT-9364 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNCHECKED_CAST -USELESS_CAST
|
||||
inline public fun reg(convertFunc: (Any) -> Any) {
|
||||
convertFunc("")
|
||||
}
|
||||
|
||||
public inline fun <reified T : Any, reified R : Any> register(converter: (T) -> R) {
|
||||
<!USAGE_IS_NOT_INLINABLE!>converter<!> as (Any) -> Any
|
||||
reg(<!USAGE_IS_NOT_INLINABLE!>converter<!> as (Any) -> Any)
|
||||
}
|
||||
Reference in New Issue
Block a user