Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
simplifyAssertNotNull
/
comments.kt
blob: 97ee68dcb2b01328dfdfaeae713b2a2f2c343c22 [
file
] [
log
] [
blame
]
// INTENTION_TEXT: "Replace with '?: error(...)'"
// WITH_RUNTIME
fun foo
(
p
:
Array
<
String
?>)
{
val v
=
p
[
0
]
// now let's check it for null
<caret>
assert
(
v
!=
null
/* null */
,
/* lazy message */
{
"Should be not null"
})
// 'v' should not be null
}