[FIR] Don't miss modality of anonymous objects in canHaveSubtypes()

They are not `FirRegularClassSymbol`, but are
final. `FirClassSymbol` is enough, because
`toSymbol()` returns `FirClassifierSymbol`, and:

- type parameters are always expected to have
  subtypes
- typealiases have been expanded in the
  previous line
This commit is contained in:
Nikolay Lunyak
2024-02-26 16:12:55 +02:00
committed by Space Team
parent 226d4df277
commit bb812add14
4 changed files with 3 additions and 94 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: -ProhibitComparisonOfIncompatibleEnums
interface I {