// FIR_DUMP @RequiresOptIn annotation class ExperimentalKotlinAnnotation internal fun interface StableInterface { @ExperimentalKotlinAnnotation // @ExperimentalStdlibApi fun experimentalMethod() } fun regressionTestOverrides() { val anonymous: StableInterface = object : StableInterface { override fun experimentalMethod() {} // correctly fails check } val lambda = StableInterface {} // this does not get flagged } @ExperimentalKotlinAnnotation fun suppressed() { val lambda = StableInterface {} }