[FE] Introduce warnings on possible empty intersection types, and improve errors reporting in general
^KT-52361 Fixed
This commit is contained in:
committed by
teamcity
parent
e133ee3765
commit
6a34b184ac
@@ -305,6 +305,12 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
|
||||
return DescriptorUtils.isInterface(declarationDescriptor)
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.isFinalClassConstructor(): Boolean {
|
||||
require(this is TypeConstructor, this::errorMessage)
|
||||
val classDescriptor = declarationDescriptor as? ClassDescriptor ?: return false
|
||||
return classDescriptor.isFinalClass
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.isCommonFinalClassConstructor(): Boolean {
|
||||
require(this is TypeConstructor, this::errorMessage)
|
||||
val classDescriptor = declarationDescriptor as? ClassDescriptor ?: return false
|
||||
|
||||
Reference in New Issue
Block a user