// RUN_PIPELINE_TILL: BACKEND
// NB: should work after KT-5907 / KT-4450 fix

val currentTimeMillis = 1234L

public class Foo(protected val maxParsingTimeInMillis: Long?) {

    var parsingStartTimeStamp = 0L

    protected fun checkForParsingTimeout(): Boolean {
        if (maxParsingTimeInMillis == null)
            return true
        if (currentTimeMillis - parsingStartTimeStamp > <!DEBUG_INFO_SMARTCAST!>maxParsingTimeInMillis<!>)
            return false
        return true
    }
}

/* GENERATED_FIR_TAGS: additiveExpression, classDeclaration, comparisonExpression, equalityExpression,
functionDeclaration, ifExpression, nullableType, primaryConstructor, propertyDeclaration, smartcast */
