Diagnostric for default

This commit is contained in:
Mikhael Bogdanov
2013-11-18 11:57:55 +04:00
parent 7329a7a9ef
commit 87e66a6e57
2 changed files with 38 additions and 0 deletions
@@ -23,4 +23,18 @@ inline fun unsupported() {
<!NOT_YET_SUPPORTED_IN_INLINE!>fun local() {
fun localInner() {}
}<!>
}
inline fun unsupportedDefault(<!NOT_YET_SUPPORTED_IN_INLINE!>s : Int = 10<!>) {
}
open class Base {
open fun foo(a: Int = 1) {}
}
class Derived: Base() {
inline final override fun foo(<!NOT_YET_SUPPORTED_IN_INLINE!>a: Int<!>) {
}
}