* property: forward repr and tostring to value-type
2 files changed, 8 insertions(+), 2 deletions(-)

M lib/scopes/property.sc
M testing/test_property.sc
M lib/scopes/property.sc +6 -0
@@ 53,6 53,12 @@ inline property (getter setter)
                 inline (self value)
                     setter (bitcast (view self) T) value
 
+            inline __repr (self)
+                repr (get self)
+
+            inline __tostring (self)
+                tostring (get self)
+
     Accessor
         inline "generate-property" (value key)
             (property-type (typeof value) key) value

          
M testing/test_property.sc +2 -2
@@ 26,6 26,6 @@ do
     test (iof.int == 11)
     iof.int += 1
     test (iof.int == 12)
-
+    test
+        (repr iof.int) == (repr 12)
 ;
-