Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
chewxy committed Mar 8, 2018
1 parent 6554af6 commit 8206240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import "fmt"
// A Constraint is well.. a constraint that says a must equal to b. It's used mainly in the constraint generation process.
type Constraint Pair

func (c Constraint) Apply(sub Subs) Substitutable { (*Pair)(&c).Apply(sub); return c }
func (c Constraint) Apply(sub Subs) Substitutable { return Constraint(*(*Pair)(&c).Apply(sub)) }
func (c Constraint) FreeTypeVar() TypeVarSet { return Pair(c).FreeTypeVar() }
func (c Constraint) Format(state fmt.State, r rune) { fmt.Fprintf(state, "{%v = %v}", c.A, c.B) }
2 changes: 1 addition & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

// DEBUG returns true when it's in debug mode
const DEBUG = false
const DEBUG = true

var tabcount uint32

Expand Down

0 comments on commit 8206240

Please sign in to comment.