uh oh, I need to actually switch to struct subvars and resolve pointer variables

This commit is contained in:
2025-04-26 22:15:36 -04:00
parent 71598a4afa
commit a087af505e
18 changed files with 205 additions and 200 deletions

View File

@@ -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 {