HaxeFoundation / HaxeFoundation/hashlink

Type checking bypass

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
901
Forks
201
Avg merge
18h 9m
Merged PRs (30d)
8

Description

The following bypass the type checking and will trace an invalid value.

```haxe
class Test {
static function main() {
var o = new Array();
o.push(123);
var n : Null = (o : Dynamic)[0];
trace((n:Float));
}
}
```

Type checking is required on accessing Dynamic with array.

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.