[intention-preview] CreateRecordFromNewFix: fix 'java.lang.Throwable'

GitOrigin-RevId: 43a4f857410fe1f6c2088f60725c65e34fd73c77
This commit is contained in:
Andrey.Cherkasov
2022-10-10 02:47:14 +04:00
committed by intellij-monorepo-bot
parent 2467c2b350
commit e03e35185f
4 changed files with 14 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
// "Create record 'MyRecord'" "true"
// "Create record 'MyRecord'" "true-preview"
class Test {
void foo () {
new MyRecord (1, 2);
new MyRecord (1);
}
}
public record MyRecord(int i, int i1) {
public record MyRecord(int i) {
}

View File

@@ -1,6 +1,6 @@
// "Create record 'MyRecord'" "true"
// "Create record 'MyRecord'" "true-preview"
class Test {
void foo () {
new <caret>MyRecord (1, 2);
new <caret>MyRecord (1);
}
}

View File

@@ -0,0 +1,2 @@
public record MyRecord(int i) {
}