Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to implement an interface generates invalid code #218

Open
JavierGelatti opened this issue Jun 15, 2024 · 0 comments
Open

Trying to implement an interface generates invalid code #218

JavierGelatti opened this issue Jun 15, 2024 · 0 comments

Comments

@JavierGelatti
Copy link

📝 Note: I'm using the VSCode editor plugin.

Problem

Let's say I have an interface (a very simple one, for this example):

interface Config where
    debugMode : Bool

If I try to implement it, after writing the implementation header, I'm offered an option to add clause:
add clause option in VSCode

However, if I run the code action, the following invalid code gets generated

Config implementation at File:4:1--4:13 = ?Config implementation at File:4:1--4:13_rhs

and inserted below the declaration:
invalid generated code

Expected behavior

A valid clause is generated, for example:

Config where
    debugMode = ?debugMode_rhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant