Implicit nothing / intersection types are now checked also for member functions #KT-11666 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0ea3b4ade4
commit
4c03aaabd4
+1
-1
@@ -213,7 +213,7 @@ private class EnhancedTypeAnnotations(private val fqNameToMatch: FqName) : Annot
|
||||
}
|
||||
|
||||
private object EnhancedTypeAnnotationDescriptor : AnnotationDescriptor {
|
||||
private fun throwError() = error("No methods should be called on this descriptor. Only its presence matters")
|
||||
private fun throwError(): Nothing = error("No methods should be called on this descriptor. Only its presence matters")
|
||||
override fun getType() = throwError()
|
||||
override fun getAllValueArguments() = throwError()
|
||||
override fun getSource() = throwError()
|
||||
|
||||
Reference in New Issue
Block a user