You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your use-case and why do you need this feature?
Some functions, such as Navigation Compose's TypeSafe DSL, require the Type Parameter they accept to be Serializable. Currently this can only be a run-time error.
Describe the solution you'd like
These should be checked at compile-time to improve the development experience.
// ⭐️ Should allow @Serializable to be given to Type Parameter Tfun <@SerializableT> someFun() { TODO() }
@Serializable
classMySerializableclassMyNotSerializablefuntest() {
someFun<String>() // 🟢 OK
someFun<String>() // 🟢 OK
someFun<MySerializable>() // 🔴 NG(Compile error): someFun.T must be @Serializable
}
The text was updated successfully, but these errors were encountered:
What is your use-case and why do you need this feature?
Some functions, such as Navigation Compose's TypeSafe DSL, require the Type Parameter they accept to be Serializable. Currently this can only be a run-time error.
Describe the solution you'd like
These should be checked at compile-time to improve the development experience.
The text was updated successfully, but these errors were encountered: