ClojureScript

Undeclared var warning when invoking a protocol method on a `js` interop form

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None

Description

Compiling the following code under 1.9.743

(ns test.foo)

(defprotocol Proto
  (f [this]))

(defn foo []
  (f js/Math.E))

Produces the following warning:

WARNING: Use of undeclared Var test.foo/js at line 7 src/test/foo.cljs

This is a regression from 1.9.293

https://github.com/Bronsa/CLJS-1.9.473-regression contains a project set up to reproduce this

Activity

Hide
David Nolen added a comment -

:advanced
is not the issue here,
:static-fns
is what is required to exhibit the problem.

Show
David Nolen added a comment -
:advanced
is not the issue here,
:static-fns
is what is required to exhibit the problem.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: