uh oh, I need to actually switch to struct subvars and resolve pointer variables
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
use crate::common::{CompilerMsg, CompilerOutput, FileSpan};
|
||||
|
||||
use super::{Type, UProgram};
|
||||
use super::{UProgram, Type};
|
||||
|
||||
impl CompilerOutput {
|
||||
pub fn check_assign(&mut self, p: &UProgram, src: &Type, dest: &Type, span: FileSpan) {
|
||||
// TODO: spans
|
||||
if src != dest {
|
||||
if !src.is_real() || !dest.is_real() {
|
||||
if !src.is_resolved() || !dest.is_resolved() {
|
||||
return;
|
||||
}
|
||||
self.err(CompilerMsg {
|
||||
|
||||
Reference in New Issue
Block a user