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

Catch warnings #11

Open
lancelote opened this issue Jul 2, 2021 · 0 comments
Open

Catch warnings #11

lancelote opened this issue Jul 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lancelote
Copy link
Owner

E.g.

datatype myType = TwoInts of int * int
                | Str of string
                | Pizza

fun f x = (* mytype -> int *)
    case x of
        Pizza => 3
      | TwoInts (i1, i2) => i1 + i2
      (*| Str s => String.size s*)

val test_1 = f Pizza = 3
@lancelote lancelote added the enhancement New feature or request label Jul 2, 2021
@lancelote lancelote changed the title Catch warning Catch warnings Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant