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

Support ClojureDart catch dynamic #2231

Open
daveliepmann opened this issue Dec 4, 2023 · 2 comments
Open

Support ClojureDart catch dynamic #2231

daveliepmann opened this issue Dec 4, 2023 · 2 comments

Comments

@daveliepmann
Copy link

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Is your feature request related to a problem? Please describe.
Dart allows catch-all catch clauses, which are syntactic sugar for the dynamic` type. ClojureDart supports these with the syntax:

(try
  ...
  (catch dynamic e
    ...))

Without it, 1:1 transliterations of Dart are not possible. See Differences: try/catch.

Describe the solution you'd like
Teach clj-kondo to recognize catch dynamic types in .cljd files

Describe alternatives you've considered
Currently I ignore the "unresolved symbol" error

@valerauko
Copy link

I think this is very similar to #2229, since dynamic is a lower-case special type just like super

@valerauko
Copy link

@daveliepmann can you check if the above PR fixed it? (by setting the cljd version in deps.edn to their latest master commit id)

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

No branches or pull requests

3 participants