We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-scalajs
1 parent 41f1489 commit 0f753abCopy full SHA for 0f753ab
compiler/src/dotty/tools/backend/sjs/GenSJSIR.scala
@@ -11,8 +11,11 @@ class GenSJSIR extends Phase {
11
12
override def description: String = GenSJSIR.description
13
14
+ override def isEnabled(using Context): Boolean =
15
+ ctx.settings.scalajs.value
16
+
17
override def isRunnable(using Context): Boolean =
- super.isRunnable && ctx.settings.scalajs.value && !ctx.usedBestEffortTasty
18
+ super.isRunnable && !ctx.usedBestEffortTasty
19
20
def run(using Context): Unit =
21
new JSCodeGen().run()
tests/pos/i20296.scala
@@ -0,0 +1,14 @@
1
+trait Foo
2
3
+object Foo {
4
+ inline def bar(): Foo =
5
+ class InlinedFoo extends Foo {}
6
+ new InlinedFoo
7
8
+ inline def foo(): Foo =
9
+ bar()
10
+ def Test: Foo = Foo.foo()
+}
0 commit comments