[NI] Report deprecation for function from companion in NI.
This commit is contained in:
+1
-1
@@ -109,4 +109,4 @@ object InvokeConventionCallNoOperatorModifier : ResolutionDiagnostic(CONVENTION_
|
||||
object InfixCallNoInfixModifier : ResolutionDiagnostic(CONVENTION_ERROR)
|
||||
object DeprecatedUnaryPlusAsPlus : ResolutionDiagnostic(CONVENTION_ERROR)
|
||||
|
||||
class ResolvedUsingDeprecatedVisbility(val baseSourceScope: ResolutionScope, val lookupLocation: LookupLocation) : ResolutionDiagnostic(RESOLVED)
|
||||
class ResolvedUsingDeprecatedVisibility(val baseSourceScope: ResolutionScope, val lookupLocation: LookupLocation) : ResolutionDiagnostic(RESOLVED)
|
||||
@@ -239,7 +239,7 @@ internal open class ScopeBasedTowerLevel protected constructor(
|
||||
createCandidateDescriptor(
|
||||
classifier,
|
||||
dispatchReceiver = null,
|
||||
specialError = if (isDeprecated) ResolvedUsingDeprecatedVisbility(resolutionScope, location) else null
|
||||
specialError = if (isDeprecated) ResolvedUsingDeprecatedVisibility(resolutionScope, location) else null
|
||||
)
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ internal open class ScopeBasedTowerLevel protected constructor(
|
||||
createCandidateDescriptor(
|
||||
it,
|
||||
dispatchReceiver = null,
|
||||
specialError = ResolvedUsingDeprecatedVisbility(resolutionScope, location)
|
||||
specialError = ResolvedUsingDeprecatedVisibility(resolutionScope, location)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user