public BasicType check(BasicType p1, BasicType p2) { if (BasicType.numeric(p1) && BasicType.numeric(p2)) { return(p2); } else if (p1 == BasicType.Bool && p2 == BasicType.Bool) { return(p2); } else { return(null); } }
public BasicType check(BasicType p1, BasicType p2) { if (p1 is BasicArray || p2 is BasicArray) { return(null); } else if (p1 == p2) { return(p2); } else if (BasicType.numeric(p1) && BasicType.numeric(p2)) { return(p2); } else { return(null); } }