Hi guys,
We have type inference for variable declarations but why don’t we have it for primary constructor parameters with default values?
fun f() {
val f = 1 // SUCCESS
}
but
class A(
val a = 1 // ERROR
)
Hi guys,
We have type inference for variable declarations but why don’t we have it for primary constructor parameters with default values?
fun f() {
val f = 1 // SUCCESS
}
but
class A(
val a = 1 // ERROR
)
But there is an issue on Youtrack for what you want:
Thanks! I missed that topic.