You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import mockatoo.Mockatoo.*;
using mockatoo.Mockatoo;
interface IFoo
{
var someVar(get, never) : Int;
}
class Foo
{
public static function main()
{
mock(IFoo);
}
}
The above fails when compiled with the haxe 3.2 compiler:
bji/bug_demo$ haxe -cpp Foo-cpp -main Foo -lib mockatoo
/usr/lib/haxe/lib/mockatoo/3,2,1/mockatoo/internal/MockMethod.hx:334: characters 44-52 : Warning : Usage of this typedef is deprecated
Foo.hx:7: characters 4-34 : Duplicate class field declaration : get_someVar
bji/bug_demo$
It appears that there is some issue with how the 3.2 compiler AST represents interface properties that is not working correctly with the mockatoo macros.
The text was updated successfully, but these errors were encountered:
bjitivo
changed the title
mock function fails for interfaces with haxe 3.2 compiler
mock function fails for interface properties with haxe 3.2 compiler
Jul 6, 2015
Here is a small example:
The above fails when compiled with the haxe 3.2 compiler:
It appears that there is some issue with how the 3.2 compiler AST represents interface properties that is not working correctly with the mockatoo macros.
The text was updated successfully, but these errors were encountered: