| Issue 103: | Reflect.copy |
1 of 23
Next ›
|
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
enum S {
a(x:String);
}
class Main {
static function main() {
var y = a("hi");
var z = Reflect.copy(y);
trace(y);
trace(Reflect.copy(y));
trace(z);
trace(Reflect.copy(a("hi")));
trace(Reflect.copy("hi"));
trace(Reflect.copy(10));
}
}
What is the expected output? What do you see instead?
expect to see:
a(hi)
a(hi)
a(hi)
a(hi)
hi
10
instead get:
a(hi)
{ }
null
{ }
hi
{ }
What version of the product are you using? On what operating system?
2,07,0
Mar 15, 2011
Project Member
#1
gameh...@gmail.com
|