Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
simplifyAssertNotNull
/
errorFunctionInContext.kt
blob: 863a68c9d497ae93abc8d162f17822c1894e9e32 [
file
] [
log
] [
blame
]
// INTENTION_TEXT: "Replace with '?: error(...)'"
// WITH_RUNTIME
class
C
{
fun error
(
message
:
String
)
{
}
fun foo
(
p
:
Array
<
String
?>)
{
val v
=
p
[
0
]
<caret>
assert
(
v
!=
null
)
{
"message"
}
}
}