File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ package foo {
2
+
3
+ import annotation .static
4
+
5
+ class MirrorHelpers
6
+
7
+ object MirrorHelpers :
8
+
9
+ @ static
10
+ def throwStuff (i : Int ): Any = throw new NoSuchElementException (String .valueOf(i))
11
+
12
+ }
13
+
14
+ @ main def Test =
15
+ try
16
+ foo.MirrorHelpers .throwStuff(23 )
17
+ ??? // ko
18
+ catch case ex : NoSuchElementException if ex.getMessage == " 23" => () // ok
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import scala .annotation .static
2
+
3
+ class Foo
4
+
5
+ object Foo {
6
+ @ static def foo = " foo"
7
+ }
8
+
9
+ class Bar {
10
+ def bar = Foo .foo
11
+ }
12
+
13
+ object Test :
14
+ def main (args : Array [String ]): Unit =
15
+ Foo .foo
16
+ Bar ().bar
Original file line number Diff line number Diff line change 1
- // scalajs: --skip --pending
2
-
3
1
import scala .annotation .static
4
2
5
3
class Test
You can’t perform that action at this time.
0 commit comments