4
import abc.MyClass.MyEnum; /// from Java

/**
 * [MyClass.MyEnum]
 */
class efg () : MyClass.MyEnum {
    return MyClass.MyEnum.BiGNUMBER;
}

I have something similar to the above in IntelliJ... but it will identify the import as unused - so optimize imports will remove it... however, if I don't insert that import manually then in my docs it will identify [MyClass.MyEnum] as cannot be resolved

What can I do?

Jayson Minard
  • 84,842
  • 38
  • 184
  • 227
ycomp
  • 8,316
  • 19
  • 57
  • 95
  • is there a way to mark an import not to be removed? – ycomp Feb 23 '16 at 16:04
  • 2
    You should add an Issue to the Dokka project, https://github.com/Kotlin/dokka about this. Maybe also one to https://youtrack.jetbrains.com referencing that one. I'm not sure who will want to fix it, from the perspective of Dokka or the Kotlin IDE plugin. – Jayson Minard Feb 23 '16 at 16:05
  • This is fixed as of 2019 – IgorGanapolsky Aug 05 '19 at 16:10

1 Answers1

2

This is a known issue in the Kotlin plugin.

yole
  • 92,896
  • 20
  • 260
  • 197