-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc fails to read scala.scalajs.js.Promise.then symbol #20476
Comments
Reproduction with Scala CLI: //> using platform js
//> using scala 3.3.2
import scala.scalajs.js
def bar: js.Promise[Int] = js.Promise.resolve(()).`then`(_ => 1) scala-cli doc repro.scala
# Starting compilation server
# Compiling project (Scala 3.3.2, Scala.js 1.16.0)
# Compiled project (Scala 3.3.2, Scala.js 1.16.0)
# -- Error: repro.scala:4:27 -----------------------------------------------------
# 4 |def bar: js.Promise[Int] = js.Promise.resolve(()).`then`(_ => 1)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |undefined: $1$.then # -1: TermRef(TermRef(NoPrefix,val $1$),then) at readTasty
# 1 error found Last good stable version: 3.3.1 |
Bisect: Reverting #18989 seems to fix this (on LTS branch at least) |
@WojciechMazur is it too late to backport this to LTS? |
We'll see, we might try backporting that in 3.3.5-RC2. |
@WojciechMazur Just to add that I seem to have the same (or a related) issue with Scala 3.6.2 and Scala.js 1.18.1:
|
This seems similar to #14143, but the affected scala versions are much newer and the bug does not occur when downgrading to scala 3.3.1:
Compiler version
scala 3.3.3 ; 3.4.0 ; 3.4.1 ; 3.4.2
scala-js 1.16.0
sbt 1.10.0
Minimized code
Output
Expectation
No error occurs (as with scala 3.3.1).
The text was updated successfully, but these errors were encountered: