fwcd / fwcd/kotlin-language-server
No error if 'fun` keyword missing in abstract function in enums
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
```kotlin
public enum class TokenType(val type: String) {
ILLEGAL("ILLEGAL"),
/* ... */
RBRACE("{");
abstract parse(): Statement
}
```
This silently fails, no error on `abstract parse(): Statement` even though the `fun` keyword is missing. There is no error on the enum types either about a missing implementation. Only if the `fun`keyword is added, do they error correctly
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Kotlin enum snippet from the issue and inspect how the language server reports syntax and abstract-member diagnostics. Trace the diagnostic entry point for the missing `fun` keyword and missing enum implementations. Done means both errors are reported consistently when the invalid snippet is analyzed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100