mirror of
https://github.com/Dummi26/mers.git
synced 2026-04-05 13:56:17 +02:00
assigning to tuples should work properly now
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::data::{Data, Type};
|
||||
use crate::{
|
||||
data::{Data, Type},
|
||||
parsing::SourcePos,
|
||||
};
|
||||
|
||||
use super::{CheckError, MersStatement};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Chain {
|
||||
pub pos_in_src: SourcePos,
|
||||
pub first: Box<dyn MersStatement>,
|
||||
pub chained: Box<dyn MersStatement>,
|
||||
}
|
||||
@@ -54,4 +58,7 @@ impl MersStatement for Chain {
|
||||
fn has_scope(&self) -> bool {
|
||||
false
|
||||
}
|
||||
fn pos_in_src(&self) -> &SourcePos {
|
||||
&self.pos_in_src
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user