[NI] Make return type of !! operator definitely not-null

This commit is contained in:
Mikhail Zarechenskiy
2017-08-22 18:17:16 +03:00
parent d18a14b717
commit 3f8a685ace
6 changed files with 52 additions and 3 deletions
@@ -0,0 +1,13 @@
interface Sample {
val callMe: Int
}
class Caller<out M : Sample?>(val member: M) {
fun test() {
member!!.callMe
}
}
fun box(): String {
return "OK"
}