Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
refactoring
/
introduceProperty
/
extractLazyWithBlock.kt.after
blob: 391c95ec085308872bec996b393d1230ec238789 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// EXTRACTION_TARGET: lazy property
class
A
(
val n
:
Int
=
1
)
{
val m
:
Int
=
2
private
val i
:
Int
by
lazy
{
println
(
n
)
m
+
n
+
1
}
fun foo
():
Int
{
return
if
(
n
>
1
)
{
i
}
else
0
}
}