## Compiler version a7f00e205cce7d5d32aeba828348c186756358bf (main) ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala //> using option -Xprint:inlining inline def twice(inline thunk: =>Unit): Unit = thunk thunk inline def pipe(inline t: =>Unit, inline f: (=>Unit) => Unit): Unit = f(t) @main def test = pipe(println("foo"), twice) ``` ## Output ```scala @main def test: Unit = { val thunk: Unit = println("foo") { thunk thunk }:Unit }:Unit ``` ## Expectation ```scala @main def test: Unit = { def thunk: Unit = println("foo") { thunk thunk }:Unit }:Unit ```