Commit 50f25766 authored by Yi Lin's avatar Yi Lin

Merge branch 'fix_signature_equality' into 'develop'

Fix signature equality

See merge request !32
parents 136c86bd 488ac3bc
......@@ -804,13 +804,18 @@ impl MuType_ {
}
/// MuFuncSig represents a Mu function signature
#[derive(PartialEq, Debug)]
#[derive(Debug)]
pub struct MuFuncSig {
pub hdr: MuEntityHeader,
pub ret_tys: Vec<P<MuType>>,
pub arg_tys: Vec<P<MuType>>
}
impl PartialEq for MuFuncSig {
fn eq(&self, other: &MuFuncSig) -> bool {
self.ret_tys == other.ret_tys && self.arg_tys == other.arg_tys
}
}
rodal_struct!(MuFuncSig{hdr, ret_tys, arg_tys});
impl fmt::Display for MuFuncSig {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment