Add test for parsing issue KT-53719

^KT-53719 Related
This commit is contained in:
Denis.Zharkov
2022-08-25 18:49:48 +02:00
committed by teamcity
parent 3d7969ec8f
commit f4a3ab877f
8 changed files with 815 additions and 0 deletions
@@ -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 }
}