Make {Type,}ExprString methods, not functions.

This commit is contained in:
Nigel Tao committed 2017-05-12 10:59:10 +10:00
1 parent e10ddeb248
commit d8d17b66c0
3 files changed
+15 -20

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ func TestCheck(t *testing.T) {
for id, typ := range bar.LocalVars {
got = append(got, [2]string{
idMap.ByID(id),
TypeExprString(idMap, typ),
typ.String(idMap),
})
}
sort.Slice(got, func(i, j int) bool {