You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packageximportscalajs.*classMyClass:deffun(x:scala.Any):Unit=
x matchcasep: js.Promise[_] =>
p.`then`( x => println(x), e => println(e) )
case _ =>
println(x)
Output
trying to generate documentation
info] welcome to sbt 1.5.2 (N/AJava15.0.2)
[info] loading global plugins from /Users/rssh/.sbt/1.0/plugins
[info] loading settings for project scalajs-then-doc-build from plugins.sbt ...
[info] loading project definition from /Users/rssh/tests/dotty/scalajs-then-doc/project
[info] loading settings for project root from build.sbt ...
[info] set current project to test (in build file:/Users/rssh/tests/dotty/scalajs-then-doc/)
[info] MainScalaAPI documentation to /Users/rssh/tests/dotty/scalajs-then-doc/target/scala-3.0.0/api...
[warn] Setting-bootclasspath is currently not supported.
[error] --Error: src/main/scala/x/X.scala:10:10---------------------------------------
[error] 10| p.`then`( x => println(x), e => println(e) )
[error] |^^^^^^^^
[error] |undefined: p.then#-1:TermRef(TermRef(NoPrefix,valp),then) at readTasty
[warn] one warning found
[error] one error found
[error] (Compile/ doc) DottyDocCompilationFailed
Expectation
Documentation should be generated without error.
The text was updated successfully, but these errors were encountered:
Compiler version
3.0.0
Minimized code
Output
trying to generate documentation
Expectation
Documentation should be generated without error.
The text was updated successfully, but these errors were encountered: