Skip to content

Instantly share code, notes, and snippets.

@mknoszlig
Last active December 13, 2015 21:48
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 mknoszlig/e0c987e0e9e4e96aeaf5 to your computer and use it in GitHub Desktop.
Save mknoszlig/e0c987e0e9e4e96aeaf5 to your computer and use it in GitHub Desktop.
user> (defn fun [^java.io.File f] f)
#'user/fun
user> (defn fun [^File f] f)
CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: File, compiling:(NO_SOURCE_PATH:1:1)
user> (import 'java.io.File)
java.io.File
user> (defn fun [^File f] f)
#'user/fun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment