mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
270 B
Kotlin
Vendored
18 lines
270 B
Kotlin
Vendored
// KT-11962 Super call with default parameters check is generated for top-level function
|
|
|
|
fun foo(x: Int = 1) { }
|
|
|
|
class FinalClass {
|
|
fun bar(x: Int = 2) { }
|
|
}
|
|
|
|
object Object {
|
|
fun baz(x: Int = 3) { }
|
|
}
|
|
|
|
fun test() {
|
|
fun local(x: Int = 4) { }
|
|
}
|
|
|
|
// 0 ATHROW
|