-
-
Save kindlychung/2d73bbc2f46ff713535e to your computer and use it in GitHub Desktop.
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
(ns type-clojure.map | |
(:require [clojure.core.typed :as -t])) | |
(-t/ann my-inc [Integer -> Integer]) | |
(defn my-inc [n] | |
(let [intern-n (Integer/parseInt "1")] | |
(+ n intern-n))) | |
;(my-inc 1.1) | |
(-t/check-ns 'type-clojure.map) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CompilerException java.lang.StackOverflowError, compiling:(/Users/kaiyin/personal_config_bin_files/workspace/type_clojure/src/type_clojure/map.clj:1:26)