Closed
Description
I've done an example and write up here: https://github.com/lpetre/tripping-avenger/tree/master
A protected setter on a C# property makes hxcs/net-lib generate invalid C#:
This:
trace(test.Working);
trace(test.Broken);
Becomes:
global::haxe.Log.trace.__hx_invoke2_o(((double) (test.Working) ), global::haxe.lang.Runtime.undefined, default(double), new global::haxe.lang.DynamicObject(new int[]{302979532, 1547539107, 1648581351}, new object[]{"main", "Main", "Main.hx"}, new int[]{1981972957}, new double[]{((double) (7) )}));
global::haxe.Log.trace.__hx_invoke2_o(((double) (test.get_Broken()) ), global::haxe.lang.Runtime.undefined, default(double), new global::haxe.lang.DynamicObject(new int[]{302979532, 1547539107, 1648581351}, new object[]{"main", "Main", "Main.hx"}, new int[]{1981972957}, new double[]{((double) (8) )}));
test.get_Broken() fails to compile with the error:
error CS0571: `Test.Broken.get': cannot explicitly call operator or accessor
Metadata
Metadata
Assignees
Labels
No labels
Activity