-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local record classes that have the parent class as the first
parameter
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package pkg; | ||
|
||
import java.util.List; | ||
|
||
public class TestRecordLocal { | ||
public Object test(List<Integer> list) { | ||
record Rec(TestRecordLocal a, List<Integer> b) { | ||
} | ||
|
||
return new Rec(this, list);// 9 | ||
} | ||
} | ||
|
||
class 'pkg/TestRecordLocal' { | ||
method 'test (Ljava/util/List;)Ljava/lang/Object;' { | ||
4 9 | ||
5 9 | ||
9 9 | ||
} | ||
} | ||
|
||
Lines mapping: | ||
9 <-> 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package pkg; | ||
|
||
import java.util.List; | ||
|
||
public class TestRecordLocal { | ||
public Object test(List<Integer> list) { | ||
record Rec(TestRecordLocal a, List<Integer> b) {} | ||
|
||
return new Rec(this, list); | ||
} | ||
} |