XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

VOXporter: Remove Init()/Axit() return type clause

Open cpyrgas opened this issue 6 years ago • 0 comments

Apparently the VO compiler allows (and ignores) a return type clause in Init()/Axit() methods, and some users have a lot of existing code like below in their VO apps. Obviously such code is a an error in X#, so VOXporter must remove those clauses.

CLASS TestClass1
METHOD Init() as object class TestClass1
return self

CLASS TestClass2
METHOD Init() as TestClass2 class TestClass2
return self

CLASS TestClass3
METHOD Init() as int class TestClass3

cpyrgas avatar Oct 16 '19 17:10 cpyrgas