I have a project that has ``` val itemIds = req...
# http4k
d
I have a project that has
Copy code
val 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?
d
We were using
Parameter
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?>
created PR https://github.com/http4k/http4k/pull/1361 for that. Was facing that visibility issue in the context of
Headers
which are a typealias of
Parameters
🙏 1