kotlin unresolved KDoc link but IntelliJ doesn't like the import that fixes it

1.2k views Asked by At
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?

1

There are 1 answers

1
yole On

This is a known issue in the Kotlin plugin.