HaxeFoundation / HaxeFoundation/haxe

[display] completion doesn't work for macro function arguments anymore

Open
#7,699 11 comments 3 reactions 1 assignee Claimed by @Simn View on GitHub
feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
class Main {
public static function main() {
foo("".);
}

static macro function foo(s:String) {
return macro {};
}
}
```

With preview 4, completion worked fine:

![](https://i.imgur.com/KDP7q9f.png)

Now it errors with the following:

```
>haxe --display Main.hx@57
Main.hx:3: characters 9-10 : haxe.macro.Expr should be String
Main.hx:3: characters 9-10 : For function argument 's'
Main.hx:3: characters 9-10 : haxe.macro.Expr should be String
Main.hx:3: characters 9-10 : For function argument 's'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.