Diagnostic update to support default parameters in inline methods
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE
|
||||
|
||||
inline fun default(s : Int = 10) {
|
||||
|
||||
}
|
||||
|
||||
inline fun default2(p: Int, s : String = "OK") {
|
||||
|
||||
}
|
||||
|
||||
open class Base {
|
||||
inline final fun foo(a: Int = 1) {}
|
||||
|
||||
inline final fun foo2(a: Int = 1, s: String = "OK") {}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ inline fun unsupported() {
|
||||
}<!>
|
||||
}
|
||||
|
||||
inline fun unsupportedDefault(<!NOT_YET_SUPPORTED_IN_INLINE!>s : Int = 10<!>) {
|
||||
inline fun unsupportedDefault(<!NOT_YET_SUPPORTED_IN_INLINE!>s : ()->Unit = {}<!>) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user