Use public interface for print-method of vars

This commit is contained in:
Michiel Borkent 2020-12-03 11:49:19 +01:00
parent 409380dbc3
commit f9f2147156
2 changed files with 5 additions and 1 deletions

2
sci

@ -1 +1 @@
Subproject commit 89d31ed4d17cc6d7066ca7696478e0768c505e89
Subproject commit dd286608fc7a492c59385bcc0238dda1476ff5db

View file

@ -572,6 +572,10 @@
(= [1 2 3] (iterator-seq (iter [1 2 3])))"))))
(deftest var-print-method-test
(when test-utils/native?
(is (bb nil "(defmethod print-method sci.lang.IVar [o w] (.write w (str :foo (symbol o)))) (def x 1) (= \":foouser/x\" (pr-str #'x))"))))
;;;; Scratch
(comment