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
@@ -27,7 +27,7 @@ class C {
|
||||
|
||||
|
||||
object Delegate {
|
||||
operator fun getValue(x: C, p: KProperty<*>) = throw AssertionError()
|
||||
operator fun getValue(x: C, p: KProperty<*>): Nothing = throw AssertionError()
|
||||
|
||||
operator fun setValue(x: C, p: KProperty<*>, value: Int) = throw AssertionError()
|
||||
operator fun setValue(x: C, p: KProperty<*>, value: Int): Nothing = throw AssertionError()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user