Skip to content

Commit 75921a5

Browse files
yilinweiWojciechMazur
authored andcommitted
Add arity 0 regression test for records.
[Cherry-picked 781c25f]
1 parent ed940ca commit 75921a5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/pos-java16+/java-records/FromScala.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
object C:
2+
3+
def useR0: Unit =
4+
val r = R0()
5+
26
def useR1: Unit =
37
// constructor signature
48
val r = R1(123, "hello")
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public record R0() {}

0 commit comments

Comments
 (0)