Add non-null assertion: correct handling of unary expression unsafe calls #KT-13430 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-12 15:51:23 +03:00
parent 13975778c5
commit cf2d575eec
4 changed files with 31 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Add non-null asserted (!!) call" "true"
class SafeType {
operator fun unaryMinus() {}
}
fun safeB(p: SafeType?) {
val v = <caret>-p
}