use eq_flat type comparison method

This commit is contained in:
collin 2021-01-11 21:40:02 -05:00
parent 62dc7b4b22
commit 9215d911e6

View File

@ -68,7 +68,7 @@ impl OutputBytes {
let register_type = parameter.type_;
let return_value_type = value.to_type(&span)?;
if register_type != return_value_type {
if !register_type.eq_flat(&return_value_type) {
return Err(OutputBytesError::mismatched_output_types(
register_type,
return_value_type,