Open phase opened 8 years ago
Interfaces don't require a block, but the highlighter won't highlight correctly until it finds a block for the interface.
interface Test /** * Doc Block Comment */ val test = 1 /** * asdf */ val T_UNDEF = object { override fun toString() = "undefined type" } /** * Another Doc Block Comment */ val test2 = 2
With an empty block, everything works normally.
interface Test {} /** * Doc Block Comment */ val test = 1 /** * asdf */ val T_UNDEF = object { override fun toString() = "undefined type" } /** * Another Doc Block Comment */ val test2 = 2
Same thing happens with annotation classes without bodies https://github.com/JetBrains/kotlin/blob/master/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/Annotations.kt
Interfaces don't require a block, but the highlighter won't highlight correctly until it finds a block for the interface.
With an empty block, everything works normally.