Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
There seems to be a inference regression in 1.10.439.

{code:title=test/foo.cljs}
(ns test.foo
  (:import [goog.history Html5History]))

(set! *warn-on-infer* true)

(doto (Html5History.)
  (.setUseFragment false))


{code:title=deps.edn}
{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}}}



clj -m cljs.main -c test.foo


Version 1.10.339 produces no warnings but 1.10.439 seems to lose the {{goog.history.Html5History}} tag it used to have.


WARNING: Cannot infer target type in expression (. G__532 setUseFragment false) at line 6 .../src/test/foo.cljs

2 Answers

0 votes
by

Comment made by: thheller

{{git bisect}} identified this commit https://github.com/clojure/clojurescript/commit/6cbd40f865132b8b13c6b902b715aed43e64f0b1.

Seems to be related to the other issue I ran into recently. The new logic seems to be flawed in several ways.

https://dev.clojure.org/jira/browse/CLJS-712?focusedCommentId=50102&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-50102

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2957 (reported by thheller)
Welcome to Clojure Q&A, where you can ask questions and receive answers from members of the Clojure community.
...