Skip to content

Commit 406c039

Browse files
committed
Add 0 arity test
1 parent 24343bf commit 406c039

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public record R0() {}
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// scalajs: --skip
22

3-
object Test {
4-
def main(args: Array[String]): Unit = {
3+
object Test:
4+
def main(args: Array[String]): Unit =
5+
val r0 = R0()
6+
r0 match
7+
case R0() =>
8+
59
val r1 = R1(42)
6-
r1 match {
10+
r1 match
711
case R1(i) => assert(i == 42)
8-
}
9-
}
10-
}
12+
13+
val R1(i) = r1
14+
assert(i == 42)

0 commit comments

Comments
 (0)