Skip to content

Instantly share code, notes, and snippets.

@MysteryMachine
Created February 7, 2015 23:33
Show Gist options
  • Save MysteryMachine/629f37ab5e15ce2e354c to your computer and use it in GitHub Desktop.
Save MysteryMachine/629f37ab5e15ce2e354c to your computer and use it in GitHub Desktop.
(ns game.gist
(:use arcadia.core))
(defcomponent MyComponent [^int myInt]
(Awake [this] (set! (.myInt this) 0)))
;; Applied to a component, on run produces:
;; ArgumentException: Object type System.Int64 cannot be converted to target type: System.Int32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment