Added support for matrix access on the typifier

This commit is contained in:
Capucho
2020-10-05 21:02:00 +01:00
committed by Dzmitry Malyshau
parent 99f829b3cc
commit 34e46d0a76

View File

@@ -98,6 +98,12 @@ impl Typifier {
kind,
width,
} => Resolution::Value(crate::TypeInner::Scalar { kind, width }),
crate::TypeInner::Matrix {
rows: size,
columns: _,
kind,
width,
} => Resolution::Value(crate::TypeInner::Vector { size, kind, width }),
ref other => panic!("Can't access into {:?}", other),
},
crate::Expression::AccessIndex { base, index } => match *self.get(base, types) {