HaxeFoundation / HaxeFoundation/as3hx

wrong conversion this.some_namespace::method()

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

Description

part1:

as3 code for example:

``` actionscript
package {

public class Issue239 {
use namespace $internal;

public function Issue239() {
this.$internal::test();
$internal::test();
}

$internal function test():void {
trace(this);
}
}
}

internal namespace $internal;
```

expected result:

``` haxe
class Issue239
{

public function new()
{
this.test();
test();
}

private function test() : Void
{
trace(this);
}
}
```

actual result:

``` haxe
class Issue239
{

public function new()
{
this.__DOLLAR__internal::test();
__DOLLAR__internal;test();
}

private function test() : Void
{
trace(this);
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the conversion with the ActionScript example and compare the generated Haxe with the expected output; done means namespace-qualified calls convert to the corresponding method calls without the malformed namespace text.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
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.