backend/tests: add defaults{4,5,6}
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Test(val x: Int) {
|
||||
fun foo(y: Int = x) {
|
||||
println(y)
|
||||
}
|
||||
}
|
||||
|
||||
fun Test.bar(y: Int = x) {
|
||||
println(y)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Test(5).foo()
|
||||
Test(6).bar()
|
||||
}
|
||||
Reference in New Issue
Block a user