Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
refactoring
/
introduceProperty
/
extractWithInitializerAndBlock.kt
blob: a4dd7e2f6ad0729db578ff840cf40b5704915231 [
file
] [
log
] [
blame
]
// EXTRACTION_TARGET: property with initializer
class
A
(
val n
:
Int
=
1
)
{
val m
:
Int
=
2
fun foo
():
Int
{
return
if
(
n
>
1
)
<selection>
{
println
(
n
)
m
+
n
+
1
}</
selection
>
else
0
}
}