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

[Le #146] Functions as args to a class cast Exception #56

Open
stanislowskij opened this issue Sep 11, 2024 · 0 comments
Open

[Le #146] Functions as args to a class cast Exception #56

stanislowskij opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request low priority

Comments

@stanislowskij
Copy link
Collaborator

⚠️ Imported from legacy repository. This issue is a duplicate of Clojure-Intro-Course/babel-legacy#146.

We can actually try to get the function name out of it.

babel.middleware=> (neg? neg?)
Expected a number, but a function was given instead.

In Clojure interactive session on line 1.
Call sequence:
[isNeg (ns:clojure.lang.Numbers) called in file Numbers.java on line 125]
[Clojure interactive session (repl)]

The function name is actually in the error:

 :cause "clojure.core$neg_QMARK_ cannot be cast to java.lang.Number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants