haxe property support. close #87

This commit is contained in:
2022-10-31 21:41:07 +00:00
parent 24335eb349
commit abbcb0d0b7
3 changed files with 44 additions and 2 deletions

View File

@@ -726,4 +726,15 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
(function _hasThreadSupport []
(#if target.threaded
true
false))
false))
(var &mut _staticProp 5)
(var :Int staticProp (property get set))
(function set_staticProp [v] (set _staticProp v))
(function get_staticProp [] _staticProp)
(function _testHaxeProperties []
(Assert.equals 5 staticProp)
(Assert.equals 9 (set staticProp 9))
(Assert.equals 9 staticProp)
(Assert.equals 9 _staticProp))