[NI] Report deprecation for function from companion in NI.

This commit is contained in:
Stanislav Erokhin
2018-05-19 16:59:39 +03:00
parent 18b65e7bcf
commit b31d027aed
4 changed files with 58 additions and 37 deletions
@@ -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)
)
}
}