Skip to content

Commit

Permalink
Add regression test for generic records (#19578)
Browse files Browse the repository at this point in the history
  • Loading branch information
yilinwei committed Jan 31, 2024
1 parent 62f0324 commit 64a8865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/pos-java16+/java-records/FromScala.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ object C:
val l2: Long = r3.l(43L, 44L)
// supertype
val isRecord: java.lang.Record = r3

def useR4: Unit =
val r4 = R4(1)
val i: Int = r4.t
1 change: 1 addition & 0 deletions tests/pos-java16+/java-records/R4.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public record R4<T>(T t) {}

0 comments on commit 64a8865

Please sign in to comment.