HaxeFoundation / HaxeFoundation/as3hx
wrong conversion this.some_namespace::method()
- 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