//
// Source
// ------------------------------------------

import androidx.compose.runtime.Composable

fun Problem() {
    fun foo() { }
    val lambda: @Composable ()->Unit = {
        ::foo
    }
}

//
// Transformed IR
// ------------------------------------------

fun Problem() {
  fun foo() { }
  val lambda = composableLambdaInstance(<>, false) { %composer: Composer?, %changed: Int ->
    sourceInformation(%composer, "C:Test.kt")
    if (%composer.shouldExecute(%changed and 0b0011 != 0b0010, %changed and 0b0001)) {
      if (isTraceInProgress()) {
        traceEventStart(<>, %changed, -1, <>)
      }
      ::foo
      if (isTraceInProgress()) {
        traceEventEnd()
      }
    } else {
      %composer.skipToGroupEnd()
    }
  }
}
