magic
magic copied to clipboard
overly permissive type resolution
The way type resolution works in standard ClojureCLR is terribly weak and inconvenient, but Magic's seems permissive to the point of perhaps being buggy. In a fresh namespace, the following works:
(do
(require '[magic.api :as m]) )
(m/faster
(UQueryBuilder|[VisualElement]|. nil))
(UQueryBuilder is UnityEngine.UIElements.UQueryBuilder<T>, VisualElement is UnityEngine.UIElements.VisualElement, both have been referenced by other namespaces in the codebase I'm working in here)