[java-completion] JavaNoVariantsDelegator: avoid redundant chains of nested classes

Fixes IDEA-334398 Code completion of nested types suggests confusing levels of nesting

GitOrigin-RevId: 206fc2b9f4a6501720b7bc95e79d981b20450823
This commit is contained in:
Tagir Valeev
2023-10-18 12:18:35 +02:00
committed by intellij-monorepo-bot
parent 3f492d6bec
commit db535a5a08
4 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
sealed interface AddUserError {
final class NameIsEmpty implements AddUserError {}
final class NameIsTooLong implements AddUserError {}
}
class Test {
public static AddUserError TryAddUser() {
return new AUE.<caret>
}
}