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
s"Found more than one instance getter to export for name $jsName.")
Crash report:
[info] Compiling 1 Scala source to /home/tos/gh/scala-js/examples/helloworld/.2.12/target/scala-2.12/classes ...
[error] Error while emitting HelloWorld.scala
[error] assertion failed:
[error] Found more than one instance getter to export for name Literal(B).
[error] while compiling: /home/tos/gh/scala-js/examples/helloworld/src/main/scala/helloworld/HelloWorld.scala
[error] during phase: jscode
[error] library version: version 2.12.14
[error] compiler version: version 2.12.14
[error] reconstructed args: -bootclasspath /home/tos/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.12.14.jar -deprecation -encoding utf8 -feature -unchecked -Xfatal-warnings -Wconf:cat=feature:w -Wconf:cat=unchecked:w -Wconf:cat=deprecation:w -Wconf:cat=deprecation:ws -Wconf:cat=feature:ws -Wconf:cat=optimizer:ws -classpath /home/tos/gh/scala-js/examples/helloworld/.2.12/target/scala-2.12/classes:/home/tos/gh/scala-js/library/.2.12/target/scala-2.12/scalajs-library_2.12-1.6.1-SNAPSHOT.jar -Xplugin:/home/tos/gh/scala-js/compiler/.2.12/target/scala-2.12/scalajs-compiler_2.12.14-1.6.1-SNAPSHOT.jar
[error]
[error] last tree to typer: This(object A$B)
[error] tree position: line 13 of /home/tos/gh/scala-js/examples/helloworld/src/main/scala/helloworld/HelloWorld.scala
[error] tree tpe: helloworld.A#A$B.type
[error] symbol: object A$B in package helloworld
[error] symbol definition: class A$B extends Object (a ModuleClassSymbol)
[error] symbol package: helloworld
[error] symbol owners: object A$B
[error] call site: object A$B in package helloworld in package helloworld
[error]
[error] == Source file context for tree position ==
[error]
[error] 10
[error] 11 class A extends js.Object {
[error] 12 class B extends js.Object
[error] 13 object B
[error] 14 }
[error] 15
[error] one error found
[error] (helloworld2_12 / Compile / compileIncremental) Compilation failed
[error] Total time: 1 s, completed Jun 12, 2021, 5:48:29 PM
The text was updated successfully, but these errors were encountered:
Minimum reproducible example (discovered while working on #4502):
Makes this assertion fail:
scala-js/compiler/src/main/scala/org/scalajs/nscplugin/GenJSExports.scala
Lines 304 to 305 in 1c3f254
Crash report:
The text was updated successfully, but these errors were encountered: