Files
kotlin-fork/idea/testData/quickfix/expressions/unsafeCall5.kt.after
T
Mikhail Glukhikh a9c30e878b KT-12628: !! is now correctly added to array expressions
(cherry picked from commit 56c9d7e)
2016-07-29 20:12:02 +03:00

4 lines
169 B
Plaintext
Vendored

// "Add non-null asserted (!!) call" "true"
operator fun Int.get(row: Int, column: Int) = if (row == column) this else null
fun foo(arg: Int) = arg[42, 13]!!.hashCode()