Carp/examples/bugs.carp
2017-12-13 22:29:43 +01:00

17 lines
539 B
Plaintext

;; This file contains examples of unsolved bugs
;;; Ranges of non-numbers (bug)
;;(defn main [] (IO.println &(Array.str &(Array.range @"hej" @"svej" @"a"))))
(project-set! "printAST" "true")
;; When enabling more interfaces like
(definterface inc (Fn [a] a))
;; the following code doesn't figure out all the type variables:
(defn f [x] (=> x inc inc inc))
;; This code works though:
(defn f [x] (=> x inc inc))
;; which means that it's the concretizer that has run too few times.
;; Running it until nothing changes should be the fix.