Issue 18 in caffeine-hx: as3hx struggles with object literals containing comments

2 views
Skip to first unread message

caffe...@googlecode.com

unread,
Apr 24, 2013, 10:16:17 PM4/24/13
to caffein...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 18 by crowde...@gmail.com: as3hx struggles with object literals
containing comments
http://code.google.com/p/caffeine-hx/issues/detail?id=18

What steps will reproduce the problem?
1. Run as3hx on the following source program:

package {
public class Foo {
private static var objlit:Object = {
//
"stuff": 42
};

public function Foo() {
}
}
}


2. Observe crash

3. Compile again with the following:

package {
public class Foo {
private static var objlit:Object = {
"stuff": 42
};

public function Foo() {
}
}
}

4. Observe success!

What is the expected output? What do you see instead?


class Foo {

static var objlit : Dynamic = {
stuff : 42

};
public function new() {
}

}



What version of the product are you using? On what operating system?

Using as3hx on cygwin/Windows 7.


Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages