Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sig seems to be broken for recursive functions #1396

Open
kamentomov opened this issue Mar 13, 2022 · 0 comments
Open

sig seems to be broken for recursive functions #1396

kamentomov opened this issue Mar 13, 2022 · 0 comments

Comments

@kamentomov
Copy link

Here is an example:

(sig f2 (Fn [Char] Char))

(defn f2 [arg]
  (if (= arg \z)
    (f2 \z)
    \n))

This is the error:

I’m unable to concretize the expression '(meta-stub f2)' at line 0, column 0 in 'dummy-file'.

It might be too general. You could try adding a type hint using `the`. at conv.carp:14:2.

Traceback:
  (defn f2 [arg] (if (= arg \z) (f2 \z) \n)) at conv.carp:14:1.
(reload) at REPL:3:5.
(do (reload) (build)) at REPL:3:1.

A similar issue had been discussed here: #1213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants