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
We need a way to hide methods of a class based on the substitution for some type parameter. This can be used to hide the predict method of models that are not fitted
Desired solution
Add a new constraint:
class Model<State = TrainingState.Unfitted> {
fun predict() where {
State sub TrainingState.Fitted
}
}
lars-reimann
changed the title
New constraint to check type parameter of constaining class
New constraint to check type parameter of containing class
Nov 1, 2024
Is your feature request related to a problem?
We need a way to hide methods of a class based on the substitution for some type parameter. This can be used to hide the
predict
method of models that are not fittedDesired solution
Add a new constraint:
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: