[LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
This commit is contained in:
committed by
Space Team
parent
aef5290210
commit
33e6a85a2d
@@ -0,0 +1,42 @@
|
||||
// RESOLVE_SCRIPT
|
||||
|
||||
class Builder {
|
||||
var version: String = ""
|
||||
|
||||
@Anno(En.Entry)
|
||||
fun execute() {
|
||||
println(version)
|
||||
}
|
||||
}
|
||||
|
||||
enum class En {
|
||||
Entry
|
||||
}
|
||||
|
||||
@Target(AnnotationTarget.EXPRESSION, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class Anno(val s: En)
|
||||
|
||||
@Anno(En.Entry)
|
||||
fun build(action: Builder.() -> Unit) = Builder().apply(action)
|
||||
|
||||
@Anno(En.Entry)
|
||||
build {
|
||||
version = "123"
|
||||
class A {
|
||||
@Anno(En.Entry)
|
||||
fun doo(i: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
execute()
|
||||
}
|
||||
|
||||
val builder = build {
|
||||
version = "321"
|
||||
}
|
||||
|
||||
@Anno(En.Entry)
|
||||
builder.execute()
|
||||
builder.version = ""
|
||||
Reference in New Issue
Block a user