// ISSUE: KT-63071
// MARK_DYNAMIC_CALLS

fun test() {
    dynamic {
        <!DEBUG_INFO_DYNAMIC!>foo<!>()
        <!DEBUG_INFO_DYNAMIC!>bar<!>.<!DEBUG_INFO_DYNAMIC!>baz<!>(0)
    }
}

fun <T> dynamic(<!UNUSED_PARAMETER!>body<!>: dynamic.() -> T): T {
    val topLevel = null
    return topLevel.<!UNRESOLVED_REFERENCE!>body<!>()
}
