lang: Plumb through a context into unification
If we have a long type unification, we might want to cancel it early. This also helps us visualize where we want context to be seen.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
package lang // XXX: move this to the unification package
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
@@ -856,7 +857,7 @@ func TestUnification1(t *testing.T) {
|
||||
Debug: testing.Verbose(),
|
||||
Logf: logf,
|
||||
}
|
||||
err = unifier.Unify()
|
||||
err = unifier.Unify(context.TODO())
|
||||
|
||||
// TODO: print out the AST's so that we can see the types
|
||||
t.Logf("\n\ntest #%d: AST (after): %+v\n", index, xast)
|
||||
|
||||
Reference in New Issue
Block a user