https://kotlinlang.org logo
Title
w

waylonbrown

09/11/2017, 10:33 PM
Okay so that was my concern, if I do just
class MyClass(context : Context) {
    var context = context.applicationContext
then whenever I use
context
and command click on it, the IDE takes me to the one referenced in the constructor instead of the field. Is that incorrect and the constructor's context reference isn't held onto?
k

karelpeeters

09/11/2017, 10:37 PM
Really? If you use it in a function Idea thinks it references the constructor one?
That's definitely a bug.
Maybe file an issue about it?
It does that with that exact code?
w

waylonbrown

09/11/2017, 10:56 PM
Yeah it did for me