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.

(ns test.foo
  (:import [goog.history Html5History]))

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

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

{: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

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.


0 votes
Reference: https://clojure.atlassian.net/browse/CLJS-2957 (reported by thheller)