DEPRECATED_ERROR supported

This commit is contained in:
Andrey Breslav
2015-10-08 20:04:03 +03:00
parent 34267e436e
commit 95240fc29f
8 changed files with 83 additions and 0 deletions
@@ -0,0 +1,21 @@
// !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<!> {}
}
}
}
}
}