Validate method substitution before definition updates and execution
This commit is contained in:
@@ -75,7 +75,7 @@ impl CallType {
|
||||
pub fn nullable(value: crate::AnnotationType) -> Self {
|
||||
Self::Union(vec![value, crate::AnnotationType::Unit])
|
||||
}
|
||||
fn alternatives(&self) -> &[crate::AnnotationType] {
|
||||
pub(crate) fn alternatives(&self) -> &[crate::AnnotationType] {
|
||||
match self {
|
||||
Self::Single(value) => std::slice::from_ref(value),
|
||||
Self::Union(values) => values,
|
||||
|
||||
Reference in New Issue
Block a user