dmcg
06/02/2025, 9:50 AMval itemIds = request.form().map<Parameter, String> { it.first }
.mapNotNull<String, ID<Item>> { ID<Item>(it) }
.toSet<ID<Item>>()
I have sometimes seen warnings, or maybe errors, that Parameter
isn’t visible, but it has always compiled eventually. Upgrading Kotlin to 2.1.20 it now won’t compile at all, although, it has to be said, the type parameters aren’t now required (I don’t know if or why they were previously).
Asking here in case anyone else has this issue. Was Parameter
ever non-internal? If not does anyone know how this code compiled in the past?DanielZ
06/03/2025, 7:27 PMParameter
in our project, and with a http4k update it became internal (forgotten which version update it was) - we simple did a redefinition of that typealias in our codebase typealias Parameter = Pair<String, String?>
DanielZ
06/03/2025, 7:42 PMHeaders
which are a typealias of Parameters