Skip to content

Instantly share code, notes, and snippets.

@kindlychung
Created May 20, 2015 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kindlychung/2d73bbc2f46ff713535e to your computer and use it in GitHub Desktop.
Save kindlychung/2d73bbc2f46ff713535e to your computer and use it in GitHub Desktop.
(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)
@kindlychung
Copy link
Author

CompilerException java.lang.StackOverflowError, compiling:(/Users/kaiyin/personal_config_bin_files/workspace/type_clojure/src/type_clojure/map.clj:1:26)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment