HaxeFoundation / HaxeFoundation/haxe

[display] DisplayLocal vs FunctionArgument.opt

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

Description

```haxe
class Main {
static function main() {}

function foo(?bar:Int) {}
}
```

There's no way to tell whether the argument `bar` is actually optional or just `Null` from the data reported by hoveing over it (a `DisplayLocal`).

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

This is inconsistent with the data obtained from hovering over the function itself (`foo`), which includes this via the `opt` flag.

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.