Diagnostics for wrong inlinable usage

This commit is contained in:
Mikhael Bogdanov
2013-11-29 16:22:31 +04:00
parent ac6dc9fa54
commit c89c465fec
18 changed files with 635 additions and 8 deletions
@@ -0,0 +1,26 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
inline fun unsupported() {
<!NOT_YET_SUPPORTED_IN_INLINE!>class A {
fun a() {
class AInner {}
}
}<!>
<!NOT_YET_SUPPORTED_IN_INLINE!>object B{
object BInner {}
}<!>
val s = <!NOT_YET_SUPPORTED_IN_INLINE!>object {
fun a() {
val sInner = object {
fun aInner() {}
}
}
}<!>
<!NOT_YET_SUPPORTED_IN_INLINE!>fun local() {
fun localInner() {}
}<!>
}