-
-
Save nomaddo/8998219 to your computer and use it in GitHub Desktop.
type annotation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* これは通らない *) | |
let f x = | |
let (g:'a) = fun y -> y | |
g 1; g "str" | |
(* これは通る *) | |
let f x = | |
let g = fun y -> y | |
g 1; g "str" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment