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

Loose type inference on functions that are type hinted #307

Open
dupuchba opened this issue Apr 19, 2024 · 0 comments
Open

Loose type inference on functions that are type hinted #307

dupuchba opened this issue Apr 19, 2024 · 0 comments

Comments

@dupuchba
Copy link
Contributor

When type hinting a function and using it, compiler looses all type inference informations. Spend some type debugging it but it should probably go into the bigger fn refactor.

(defn baptiste [^#/(String -> int) fff]
  (let [b (fff "one")]
    b))

Generates

dc.dynamic baptiste(dc.dynamic fff$1, ){
final dc.dynamic b$1=(fff$1 as dc.int Function(dc.String, ))("one", );
return b$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant