We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87e6a60 + 8341ca9 commit 873df82Copy full SHA for 873df82
doc/semantics.md
@@ -145,6 +145,11 @@ JVM semantics, you can do so with an sbt setting.
145
For example, this setting enables compliant `asInstanceOf`s:
146
147
{% highlight scala %}
148
+// Scala.js 1.x
149
+scalaJSLinkerConfig ~= { _.withSemantics(_.withAsInstanceOfs(
150
+ org.scalajs.linker.interface.CheckedBehavior.Compliant)) }
151
+
152
+// Scala.js 0.6.x
153
scalaJSLinkerConfig ~= { _.withSemantics(_.withAsInstanceOfs(
154
org.scalajs.core.tools.sem.CheckedBehavior.Compliant)) }
155
{% endhighlight %}
0 commit comments