[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class Ann
|
||||
|
||||
fun testLambdaLabel() = l@ { 42 }
|
||||
|
||||
fun testAnonymousFunctionLabel() = l@ fun() {}
|
||||
|
||||
fun testAnnotatedLambdaLabel() = lambda@ @Ann {}
|
||||
|
||||
fun testParenthesizedLambdaLabel() = lambda@ ( {} )
|
||||
|
||||
fun testLabelBoundToInvokeOperatorExpression() = l@ <!UNRESOLVED_REFERENCE!>{ 42 }()<!>
|
||||
|
||||
fun testLabelBoundToLambda() = <!UNRESOLVED_REFERENCE!>(l@ { 42 })()<!>
|
||||
|
||||
fun testWhileLoopLabel() {
|
||||
L@ while (true) {}
|
||||
}
|
||||
|
||||
fun testDoWhileLoopLabel() {
|
||||
L@ do {} while (true)
|
||||
}
|
||||
|
||||
fun testForLoopLabel(xs: List<Any>) {
|
||||
L@ for (x in xs) {}
|
||||
}
|
||||
|
||||
fun testValLabel() {
|
||||
L@ val fn = {}
|
||||
fn()
|
||||
}
|
||||
|
||||
fun testHighOrderFunctionCallLabel() {
|
||||
L@ run {}
|
||||
}
|
||||
|
||||
fun testAnonymousObjectLabel() =
|
||||
L@ object {}
|
||||
Reference in New Issue
Block a user