d99054a3e0c8 — Leonard Ritter a month ago
* String: allow explicit conversion of native string type to `String`
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/scopes/String.sc
M lib/scopes/String.sc +3 -0
@@ 154,6 154,9 @@ typedef+ StringBase
             inline (self)
                 string self._items self._count
 
+    inline __ras (T cls)
+        static-if ((cls.ElementType == i8) and (T == string)) cls
+
     inline reverse (self)
         Generator
             inline () (deref self._count)