Create records from new (IDEA-229796)

GitOrigin-RevId: 38ffe8494d90cb7d5d83c5cfcc923259aac1e05f
This commit is contained in:
Tagir Valeev
2019-12-25 14:21:28 +07:00
committed by intellij-monorepo-bot
parent 3e27e828e6
commit 042c0bff53
22 changed files with 394 additions and 96 deletions

View File

@@ -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) {
}

View File

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

View File

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

View File

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