K1:report warning on OptIn usages inside SAM constructor #KT-47708 Fixed
This commit is contained in:
@@ -11,7 +11,7 @@ fun regressionTestOverrides() {
|
||||
val anonymous: StableInterface = object : StableInterface {
|
||||
override fun <!OPT_IN_OVERRIDE_ERROR!>experimentalMethod<!>() {} // correctly fails check
|
||||
}
|
||||
val lambda = StableInterface {} // this does not get flagged
|
||||
val lambda = <!OPT_IN_USAGE!>StableInterface<!> {} // this does not get flagged
|
||||
}
|
||||
|
||||
@ExperimentalKotlinAnnotation
|
||||
|
||||
Reference in New Issue
Block a user