Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/deprecatedErrorBuilder.kt
T
2015-10-13 01:44:46 +03:00

21 lines
454 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
class Table
class Tr
fun table(body: Table.() -> Unit) {}
fun Table.tr(body: Tr.() -> Unit) {}
@Deprecated("Don't call me", level = DeprecationLevel.ERROR)
fun Tr.tr(body: Tr.() -> Unit) {}
fun builderTest() {
table {
tr {
<!DEPRECATION_ERROR!>tr<!> {}
table {
tr {
<!DEPRECATION_ERROR!>tr<!> {}
}
}
}
}
}