fwcd / fwcd/vscode-kotlin

Support for expect and actual

Open
#98 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
359
Forks
56
PR merge metrics
No merged PRs in 30d

Description

### Description
Currently I am trying to open on of our. projects in VS Code, but in this project we are using KMM, which supports the `expect` and `actual` keywords. The problem is, that VS Code thinks the methods are overloading eachother.

Our expect method `internal expect fun doSomeAction()` is reporting the following error :

```
Function 'doSomeAction' has several compatible actual declarations in modules
```

While our actual method `internal actual fun doSomeAction()` is reporting the following error

```
Conflicting overloads: internal actual fun doSomeAction(): Unit defined in xxx in file SomeFile.kt
```

### Extension version
Which version of the VSCode extension you are running. **v0.2.26**

Maybe `actual`/`expect` support isn't ready yet, because the feature is officially still beta?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported diagnostics in VS Code using a Kotlin Multiplatform project with `expect` and `actual` declarations. Start by tracing how the extension analyzes these declarations and reports overload or compatibility errors. Done means valid declarations no longer produce the reported false errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.