fun foo(lambda: (String) -> Int): Int = lambda("jello!") fun test() { foo @Deprecated("") { it.length } }