HaxeFoundation / HaxeFoundation/as3hx

Not correct porting of string + int(int + int)

Open
#335 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
180
Forks
52
PR merge metrics
No merged PRs in 30d

Description

c, d - Int
as3 code for example:
```actionscript
package {
public class Issue {
public function Issue() {
a = "b" + int (c + d);
}
}
}
```
expected result
```haxe

class Issue
{
public function new()
{
a = "b" + (c + d);
}
}

```
actual result
```haxe

class Issue
{
public function new()
{
a = "b" + c + d;
}
}

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the AS3-to-Haxe conversion for the shown expression, especially how int(c + d) is handled when combined with string concatenation. Compare the generated output with the expected example; done means the parentheses around c + d are preserved so the converted expression matches the requested Haxe form.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.