13 lines
182 B
Plaintext
Vendored
13 lines
182 B
Plaintext
Vendored
// WITH_DEFAULT_VALUE: false
|
|
class T(val t: Int)
|
|
|
|
fun foo(t: T): Int {
|
|
return t.t / 2
|
|
}
|
|
|
|
fun bar(x: Int = foo(T(T(2).t + 1)))
|
|
|
|
fun test() {
|
|
val t = T(2).t
|
|
foo(T(t + 1))
|
|
} |