haxe property support. close #87
This commit is contained in:
@@ -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))
|
Reference in New Issue
Block a user