use std::fmt::Debug;
use crate::ns::*;
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct DeferError();
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct AmbiguousReferenceError(pub String);
#[derive(Clone)]
pub enum PropertyLookupError {
Defer,
AmbiguousReference(String),
VoidBase,
NullableObject {
nullable_type: Thingy,
},
}
impl Debug for PropertyLookupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PropertyLookupError()")
}
}
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct TypeExpectError();
#[derive(Clone)]
pub enum MethodOverridingError {
Defer,
MustOverrideAMethod,
IncompatibleOverride {
expected_signature: Thingy,
actual_signature: Thingy,
},
OverridingFinalMethod,
}
impl Debug for MethodOverridingError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MethodOverridingError()")
}
}