feat: introduce bidirectional type checking

This commit is contained in:
Shunsuke Shibayama 2023-09-05 13:57:58 +09:00
parent 5f8d744e47
commit 75b5b68831
13 changed files with 501 additions and 135 deletions

View file

@ -1022,6 +1022,12 @@ impl Locational for () {
}
}
impl<T: Locational, const N: usize> Locational for [T; N] {
fn loc(&self) -> Location {
Location::stream(self)
}
}
#[macro_export]
macro_rules! impl_locational_for_enum {
($Enum: ident; $($Variant: ident $(,)?)*) => {