mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Accept mismatch in varargness of record and canonical constructor
GitOrigin-RevId: d377578d8cd5ef67e5d2241f956792e887aa80b2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
962a2b176f
commit
e1f4bf5bcf
@@ -15,6 +15,17 @@ record TypeMismatch<T>(T t) {
|
||||
this.t = null;
|
||||
}
|
||||
}
|
||||
// Current spec draft allows this
|
||||
record VarArgMismatch(int... x) {
|
||||
public VarArgMismatch(int[] x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
record VarArgMismatch2(int[] x) {
|
||||
public VarArgMismatch2(int... x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
record Delegate(int x) {
|
||||
public Delegate(int x) {
|
||||
<error descr="Canonical constructor cannot delegate to another constructor">this()</error>;
|
||||
|
||||
Reference in New Issue
Block a user