From 34e46d0a763433c86169de3e288cfdbfca986668 Mon Sep 17 00:00:00 2001 From: Capucho Date: Mon, 5 Oct 2020 21:02:00 +0100 Subject: [PATCH] Added support for matrix access on the typifier --- src/proc/typifier.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/proc/typifier.rs b/src/proc/typifier.rs index 8c67df2c32..721c92bef5 100644 --- a/src/proc/typifier.rs +++ b/src/proc/typifier.rs @@ -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) {