这是indexloc提供的服务,不要输入任何密码
Skip to content

return type not checked for recursive calls #349

@opqdonut

Description

@opqdonut

This crashes with segmentation fault:

(defn recurse [a]
  (if (= a 0)
    ;; We return an Int
    0
    ;; But treat the return value of the recursive call as &Int
    @(recurse (dec a))))

(defn main []
  (println* (recurse 1)))

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions