And another: ``` fun getResult(value: Any?) { ...
# announcements
r
And another:
Copy code
fun getResult(value: Any?) {
    val result = (value as? Map<*, *>)?.get("result")
    ....
}
The
get
call is marked as an error due to
Type inference failed. The value of the type parameter K should be mentioned in input types (argument types, receiver type or expected type). Try to specify it
But again it compiles and runs fine
g
I had similar problems. I found the option disable new inference in intelliJ.
r
I know you can, but since this will eventually become the new inference engine, these issues should be fixed
a
Can you please report these bugs to http://kotl.in/issue? Thanks!
r
I found an issue that may be related, but I'm not sure: https://youtrack.jetbrains.com/issue/KT-32235
👍 1