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

eqWAlizer: dynamic_generics:case11_neg/1 #1

Open
albsch opened this issue Jun 6, 2024 · 0 comments
Open

eqWAlizer: dynamic_generics:case11_neg/1 #1

albsch opened this issue Jun 6, 2024 · 0 comments

Comments

@albsch
Copy link
Member

albsch commented Jun 6, 2024

Should fail, but passes:

-spec fapply(fun((T) -> U), T) -> U.
fapply(F, X) ->
    ZZ = F(X),
    ZZ.

-spec case11_neg(X) -> X.                  |         |
case11_neg(X) ->                           | ERROR   |
  Res = fapply(fun dyn_fun/1, X),          |         |
  {Res}.                                   |         | {Res}.
                                           |         | Expected: X
                                           |         | Got     : {dynamic()}
@albsch albsch changed the title eqWAlizer: case11_neg/1 eqWAlizer: dynamic_generics:case11_neg/1 Jun 6, 2024
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

1 participant