// RUN_PIPELINE_TILL: FRONTEND
//KT-4640 "Trace is erased after resolution completion" exception

class ValueWrapper()
{
    var backingValue: Int = 0

    fun getValue() = backingValue
    fun setValue(v: Int) { backingValue = v }
}

val foo <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>by<!> ValueWrapper()

/* GENERATED_FIR_TAGS: assignment, classDeclaration, functionDeclaration, integerLiteral, nullableType,
primaryConstructor, propertyDeclaration, propertyDelegate, starProjection */
