Add test for parsing issue KT-53719
^KT-53719 Related
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// SKIP_TXT
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-53719
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class Ann(val x: String)
|
||||
fun <T> foo(x: (T) -> T) {}
|
||||
|
||||
fun main() {
|
||||
foo<Int> label@ { x -> x }
|
||||
foo<Int> label@{ x -> x }
|
||||
foo<Int>label@ { x -> x }
|
||||
foo<Int>label@{ x -> x }
|
||||
foo<Int>label@
|
||||
{ x -> x }
|
||||
|
||||
foo<Int>/* */label@ { x -> x }
|
||||
foo<Int>/* */label@{ x -> x }
|
||||
foo<Int>label@/* */{ x -> x }
|
||||
foo<Int> label@/* */{ x -> x }
|
||||
foo<Int> label@/* */
|
||||
{ x -> x }
|
||||
|
||||
foo<Int> @Ann("") label@ { x -> x }
|
||||
foo<Int>/* */@Ann("") label@ { x -> x }
|
||||
foo<Int>@Ann("")/* */label@ { x -> x }
|
||||
foo<Int> @Ann("") label@/* */{ x -> x }
|
||||
foo<Int> @Ann("") label@/* */
|
||||
{ x -> x }
|
||||
}
|
||||
Reference in New Issue
Block a user