Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
simplifyNegatedBinaryExpression
/
notIn.kt
blob: 44a913ccfa5c3fd5419f8c549ff7eb6141802fd9 [
file
] [
log
] [
blame
]
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
class
A
(
val e
:
Int
)
{
operator
fun contains
(
i
:
Int
):
Boolean
=
e
==
i
}
fun test
(
n
:
Int
)
{
val a
=
A
(
1
)
<caret>
!(
0
!
in
a
)
}