]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/types/signature.go
go/types, types2: implement Alias proposal (export API)
[gostls13.git] / src / go / types / signature.go
index e7a348d8510ee713a7bf7ff77046dcb2d45a9ea1..ed9fcfe58ef31f8ec1d1b6096bcdb399511530a1 100644 (file)
@@ -211,7 +211,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
                check.later(func() {
                        // spec: "The receiver type must be of the form T or *T where T is a type name."
                        rtyp, _ := deref(recv.typ)
-                       atyp := _Unalias(rtyp)
+                       atyp := Unalias(rtyp)
                        if !isValid(atyp) {
                                return // error was reported before
                        }