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
@@ -6,6 +6,6 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
@Anno val x: Int by object {
|
||||
operator fun getValue(thiz: Class, data: KProperty<*>) = null!!
|
||||
operator fun getValue(thiz: Class, data: KProperty<*>): Nothing = null!!
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ import kotlin.reflect.KProperty
|
||||
annotation class Anno
|
||||
|
||||
@Anno val x: Int by object {
|
||||
operator fun getValue(thiz: Any?, data: KProperty<*>) = null!!
|
||||
operator fun getValue(thiz: Any?, data: KProperty<*>): Nothing = null!!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user