summaryrefslogtreecommitdiff
path: root/test/rename1.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
committerRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
commit325cf8ef217b4e9ae2caf53fa0d4534cd5003bd8 (patch)
tree72405fbc32b0bef0850cac2797f818bccc12b44e /test/rename1.go
parentacfd6d5f055ca5283dff5de16390c1d0cfc9f0ca (diff)
downloadgo-git-325cf8ef217b4e9ae2caf53fa0d4534cd5003bd8.tar.gz
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev https://golang.org/cl/741041
Diffstat (limited to 'test/rename1.go')
-rw-r--r--test/rename1.go62
1 files changed, 30 insertions, 32 deletions
diff --git a/test/rename1.go b/test/rename1.go
index 2224773e9f..f239999986 100644
--- a/test/rename1.go
+++ b/test/rename1.go
@@ -7,42 +7,40 @@
package main
func main() {
- var n byte; // ERROR "not a type|expected type"
- var y = float(0); // ERROR "cannot call|expected function"
+ var n byte // ERROR "not a type|expected type"
+ var y = float(0) // ERROR "cannot call|expected function"
const (
- a = 1+iota; // ERROR "string|incompatible types"
+ a = 1 + iota // ERROR "string|incompatible types"
)
}
const (
- bool = 1;
- byte = 2;
- float = 3;
- float32 = 4;
- float64 = 5;
- int = 6;
- int8 = 7;
- int16 = 8;
- int32 = 9;
- int64 = 10;
- uint = 11;
- uint8 = 12;
- uint16 = 13;
- uint32 = 14;
- uint64 = 15;
- uintptr = 16;
- true = 17;
- false = 18;
- iota = "abc";
- nil = 20;
- cap = 21;
- len = 22;
- make = 23;
- new = 24;
- panic = 25;
- panicln = 26;
- print = 27;
- println = 28;
+ bool = 1
+ byte = 2
+ float = 3
+ float32 = 4
+ float64 = 5
+ int = 6
+ int8 = 7
+ int16 = 8
+ int32 = 9
+ int64 = 10
+ uint = 11
+ uint8 = 12
+ uint16 = 13
+ uint32 = 14
+ uint64 = 15
+ uintptr = 16
+ true = 17
+ false = 18
+ iota = "abc"
+ nil = 20
+ cap = 21
+ len = 22
+ make = 23
+ new = 24
+ panic = 25
+ print = 26
+ println = 27
)
-