has anybody ever got problems importing a `set` op...
# random
e
has anybody ever got problems importing a
set
operator of a
MutableMap
?
k
No, but maybe if you show us the code and error message we can help.
v
Isn't it a method? How can you import it?
imported explicitely through
imgui.set
, didn't work
although I can see it clicling on the import and in the code completition
b
@voddan you can import individual static methods and constants
v
You are right, it is an extension. My guess is that it conflicts with the generic one fro stdlib https://github.com/JetBrains/kotlin/blob/1.1.3/libraries/stdlib/src/kotlin/collections/Maps.kt#L175
IMHO you should repot it as a bug (in plugin or compiler) and see what they say
e
I had the same feeling, thanks @voddan
b
You are using it like
object[key] = value
, right? Not like
object.set(key, value)
?
e
tried first that, than the functional one