HaxeFoundation / HaxeFoundation/hxcpp

Wrong result for true == 1 comparison when variables typed as Dynamic or Any

Open
#1,009 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

```haxe
var b:Dynamic = true;
var i:Dynamic = 1;
trace(b == i); // true, but should be false
```

Other targets like Neko and HashLink have the correct result of false

Reproduced with Haxe 4.2.5

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.