mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
Create records from new (IDEA-229796)
GitOrigin-RevId: 38ffe8494d90cb7d5d83c5cfcc923259aac1e05f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3e27e828e6
commit
042c0bff53
@@ -0,0 +1,9 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
class Test {
|
||||
void foo () {
|
||||
new MyRecord<String> (1, 2);
|
||||
}
|
||||
}
|
||||
|
||||
public record MyRecord<T>(int i,int i1) {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
class Test {
|
||||
void foo () {
|
||||
new MyRecord (1, 2);
|
||||
}
|
||||
}
|
||||
|
||||
public record MyRecord(int i,int i1) {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
class Test {
|
||||
void foo () {
|
||||
new <caret>MyRecord<String> (1, 2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
class Test {
|
||||
void foo () {
|
||||
new <caret>MyRecord (1, 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user