~jojo/Carth

ref: 55fb4f948f1f3797078b584dc60b4f7dd68b37ed Carth/test/tests/bad/cast-poly2.carth -rw-r--r-- 120 bytes
55fb4f94JoJo Check `cast` in Infer instead of Gen 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
;; NoClassInstance

(import std)

(define (foo a)
  (cast a))

(define: (bar Unit)
    (Fun Unit Int)
  (foo (Some 5)))