HaxeFoundation / HaxeFoundation/haxe
[display] bind() with unused result should produce unused code diagnostic
Open
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
Assessment
This issue has not been assessed yet.