File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
compiler/src/dotty/tools/backend/sjs Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,11 @@ class GenSJSIR extends Phase {
11
11
12
12
override def description : String = GenSJSIR .description
13
13
14
+ override def isEnabled (using Context ): Boolean =
15
+ ctx.settings.scalajs.value
16
+
14
17
override def isRunnable (using Context ): Boolean =
15
- super .isRunnable && ctx.settings.scalajs.value && ! ctx.usedBestEffortTasty
18
+ super .isRunnable && ! ctx.usedBestEffortTasty
16
19
17
20
def run (using Context ): Unit =
18
21
new JSCodeGen ().run()
Original file line number Diff line number Diff line change
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
+ class InlinedFoo extends Foo {}
11
+ new InlinedFoo
12
+
13
+ def Test : Foo = Foo .foo()
14
+ }
You can’t perform that action at this time.
0 commit comments