247efb220c
This has no effect on correct code because extension properties cannot have a backing field anyway and that is checked separately. But this function is used in psi2ir to determine whether or not to create a backing field for a property, and in case the code where the property is declared is unreachable like in KT-44496 and has no explicit getter or setter, it would previously return true for extension properties, which on JVM would result in an actual field in the class file, which made no sense. After this change, the compiler will actually crash with an exception in the IR validaton step because the symbol for the field is unbound. That is a bit better than proceeding to generate potentially invalid bytecode, but of course a proper fix would be to report an error in the frontend. #KT-44496