Skip to content

Commit 64a8865

Browse files
committed
Add regression test for generic records (#19578)
1 parent 62f0324 commit 64a8865

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
@@ -41,3 +41,7 @@ object C:
4141
val l2: Long = r3.l(43L, 44L)
4242
// supertype
4343
val isRecord: java.lang.Record = r3
44+
45+
def useR4: Unit =
46+
val r4 = R4(1)
47+
val i: Int = r4.t
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public record R4<T>(T t) {}

0 commit comments

Comments
 (0)