Added double alias test
@@ -3,6 +3,8 @@ use hacspec_lib::*;
bytes!(SimpleOutput, 3);
type SimpleOutputResult = Result<SimpleOutput, u8>;
+type SResult = SimpleOutputResult;
+
pub fn foo(x: Result<Result<U32, usize>, usize>) -> U32 {
let _y = Result::<U32, usize>::Ok(U32(1u32));
let _z = Result::<U32, usize>::Err(8);
@@ -37,3 +39,8 @@ pub fn type_alias_question_mark_return() -> SimpleOutputResult {
let _other_result = other()?;
SimpleOutputResult::Err(1u8)
}
+
+pub fn type_double_alias_question_mark_return() -> SResult {
+ let _other_result = other()?;
+ SResult::Err(1u8)
+}
