override issue

33 views
Skip to first unread message

Franco Ponticelli

unread,
Mar 5, 2012, 9:37:31 AM3/5/12
to haxe...@googlegroups.com
Thanks to the issue report from tametick (https://github.com/fponticelli/thx/issues/3), I've realized that the unit tests of thx do not pass when compiled to flash 9 or 10. The error I have is:

VerifyError: Error #1053: Illegal override of IniEncoder in thx.ini.IniEncoder.

at boot_b347/init()[src/thx/text/Inflections.hx:108]

at flash::Boot/start()[/Users/francoponticelli/Projects/haxe/std/flash9/Boot.hx:72]

at boot_b347()[/Users/francoponticelli/Projects/haxe/std/flash9/Boot.hx:41] 

The strange thing is that I am not importing any external SWF and not doing any kind of magic.

Any hint to nail the problem?

Franco

Franco Ponticelli

unread,
Mar 6, 2012, 9:01:38 AM3/6/12
to haxe...@googlegroups.com
No ideas, anyone?

Heinz Hölzer

unread,
Mar 6, 2012, 9:13:30 AM3/6/12
to haxe...@googlegroups.com
Maybe the function named null is the cause of this problem.

Franco Ponticelli

unread,
Mar 6, 2012, 9:47:15 AM3/6/12
to haxe...@googlegroups.com
It is not null() but int(). I changed its name to intValue and now it works, thank you for the hint.

Nicolas, should int be a reserved word or there is something that can be done to make it work as a function name?

Franco

Franco Ponticelli

unread,
Mar 6, 2012, 9:57:49 AM3/6/12
to haxe...@googlegroups.com
I've been able to narrow the issue and it only happens if an interface has a function named "int()". This is a flash only problem.

Franco
Reply all
Reply to author
Forward
0 new messages