Skip to content

Commit

Permalink
Add regression test for generic records (#19578)
Browse files Browse the repository at this point in the history
[Cherry-picked 64a8865]
  • Loading branch information
yilinwei authored and WojciechMazur committed Jun 30, 2024
1 parent ffad39e commit 0c31b97
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 0c31b97

Please sign in to comment.