Is it expected that ocall should generate a warning when *warn-on-infer* is enabled?
(ns scratch.core
(:require [oops.core :refer [ocall]]))
(set! *warn-on-infer* true)
(ocall js/document :getElementById "foo")
Produces compiler warning:
6 (ocall js/document :getElementById "foo")
^--- Cannot infer target type in expression (. fn-126930 call (oops.helpers/unchecked-aget call-info-126931 0) "foo")
Perhaps the oops codegen could typehint the fn-* symbol with ^js/Function?