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
@@ -4,7 +4,7 @@ import kotlin.reflect.KProperty
|
||||
|
||||
class NotImplemented<T>(){
|
||||
operator fun getValue(thisRef: Any?, prop: KProperty<*>): T = notImplemented()
|
||||
operator fun setValue(thisRef: Any?, prop: KProperty<*>, value: T) = notImplemented()
|
||||
operator fun setValue(thisRef: Any?, prop: KProperty<*>, value: T): Nothing = notImplemented()
|
||||
}
|
||||
|
||||
fun notImplemented() : Nothing = notImplemented()
|
||||
|
||||
Reference in New Issue
Block a user