Join Slack
Powered by
It should be possible to specify a default value f...
# language-proposals
m
Mikhail
07/18/2022, 1:02 AM
It should be possible to specify a default value for type parameters, is there any issue opened about this?
Mikhail
07/18/2022, 1:06 AM
Though, It's hard to determine the priority of the derived type parameter and the default one
r
rnett
07/18/2022, 1:34 AM
https://youtrack.jetbrains.com/issue/KT-1215/Support-default-values-for-type-parameters
m
Mikhail
07/18/2022, 3:57 AM
Thanks
b
Ben Woodworth
07/18/2022, 9:31 PM
What's your use case? Kotlin 1.7 lets you put
_
in place if a type parameter from the calling side now, which could help
Open in Slack
Previous
Next