HaxeFoundation / HaxeFoundation/haxe

[display] bind() with unused result should produce unused code diagnostic

Open
#7,226 6 comments 0 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() {
Std.string.bind("");
}
}
```

I think `Std.string.bind("")` here should produce the usual "This code has no effect" diagnostic. Maybe it needs to be marked as `@:pure` for that to work?

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.