mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java: error message for wrong record constructor reference in another class
GitOrigin-RevId: 335157be832b59e0b7d63a9fa8a42fddc91153af
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5376e6e8c9
commit
46ed99082c
+6
@@ -57,6 +57,12 @@ record ImplicitCanonicalConstructor(String s) {
|
||||
static void test() {
|
||||
new ImplicitCanonicalConstructor("Asdasd");
|
||||
}
|
||||
|
||||
static class UsageInAnotherClass {
|
||||
static void test() {
|
||||
new ImplicitCanonicalConstructor<error descr="'ImplicitCanonicalConstructor(java.lang.String)' in 'ImplicitCanonicalConstructor' cannot be applied to '(int)'">(1)</error>;
|
||||
}
|
||||
}
|
||||
}
|
||||
record AssignmentInNonCanonical(int x, int y, long depth) {
|
||||
public AssignmentInNonCanonical(int x, int y) {
|
||||
|
||||
Reference in New Issue
Block a user