(From code using Jetpack Compose library) `var mod...
# intellij
p
(From code using Jetpack Compose library)
var modifier: Modifier = Modifier
IntellijIdea treat it as redundant explicit type. But = Modifier is
companion object : Modifier
.
e
It's because you could just write
var modifier = Modifier
p
No. That's the code declaring Modifier
Copy code
interface Modifier{
  companion object : Modifier{}
}
In case if I skip explicit type var will be of type Modifier.Companion
e
Right. You should probably open a YouTrack issue then
p
u
How about
Modifier.Modifier
? And maybe some import magic?