0693bd6b62
When the extension receiver of a named suspend function was marked as used from the inner lambda, codegen used to throw a "Don't know how to generate outer expression for class" exception. It may seem quite tricky, but currently for suspend lambda body its extension receiver is treated as it's defined inside the relevant "doResume" (there is an actual bytecode part that fills the relevant local variable) The problem was that inside ExpressionCodegen for "doResume" of named suspend function we couldn't determine that original function has an extension receiver. #KT-15821 Fixed #KT-15820 Fixed