Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
scopes
/
kt1078.kt
blob: 877e6d75dd5b7838b490478f5020d3fc5c358d6b [
file
]
// FIR_IDENTICAL
//KT-1078 Problem with visibility in do-while
package
kt1078
fun test
()
:
B
{
do
{
val x
=
foo
()
}
while
(
x
.
bar
())
// x is not visible here!
return
B
()
}
class
B
()
{
fun bar
()
=
true
}
fun foo
()
=
B
()