lang: unification: Add missing return to exit early

This exits the test early, since we don't need to continue.
This commit is contained in:
James Shubin
2019-01-20 03:37:40 -05:00
parent 9398deeabc
commit 6d0c5ab2d5

View File

@@ -729,6 +729,7 @@ func TestUnification1(t *testing.T) {
t.Errorf("test #%d: expected fail, got wrong error", index)
t.Errorf("test #%d: got error: %+v", index, err)
t.Errorf("test #%d: exp error: %+v", index, experr)
return
}
if expect == nil { // test done early