]> Cypherpunks repositories - gostls13.git/commitdiff
exp/types: add error type to universe
authorRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:47:33 +0000 (21:47 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:47:33 +0000 (21:47 -0400)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5327051

src/pkg/exp/types/universe.go

index f0435966d11e9618f6bc5a19a6fffad5ddd1b4e3..780b82625f5f8208296f526074e7273a04c83858 100644 (file)
@@ -57,6 +57,7 @@ func init() {
        defType("rune") // TODO(gri) should be an alias for int
        defType("complex64")
        Complex128 = defType("complex128")
+       defType("error")
        defType("float32")
        Float64 = defType("float64")
        defType("int8")