Introduce warning about forbidden referencing to underscore named parameter of the catch block in a future release (KT-31567)
This commit is contained in:
@@ -452,3 +452,6 @@ fun ModuleDescriptor.getKotlinTypeRefiner(): KotlinTypeRefiner = getCapability(R
|
||||
|
||||
@OptIn(TypeRefinement::class)
|
||||
fun ModuleDescriptor.isTypeRefinementEnabled(): Boolean = getCapability(REFINER_CAPABILITY)?.value != null
|
||||
|
||||
val VariableDescriptor.isUnderscoreNamed
|
||||
get() = name.identifier == "_"
|
||||
|
||||
Reference in New Issue
Block a user