mirror of
https://github.com/golang/go
synced 2025-05-22 05:48:03 +00:00
rewrite errchk in perl for speed (compared to bash)
R=iant DELTA=125 (51 added, 53 deleted, 21 changed) OCL=35508 CL=35511
This commit is contained in:
@ -16,22 +16,22 @@ type T struct {
|
||||
func main() {
|
||||
{
|
||||
var x, y sync.Mutex;
|
||||
x = y; // ERROR "assignment\[ -~\]*Mutex"
|
||||
x = y; // ERROR "assignment.*Mutex"
|
||||
_ = x;
|
||||
}
|
||||
{
|
||||
var x, y T;
|
||||
x = y; // ERROR "assignment\[ -~\]*Mutex"
|
||||
x = y; // ERROR "assignment.*Mutex"
|
||||
_ = x;
|
||||
}
|
||||
{
|
||||
var x, y [2]sync.Mutex;
|
||||
x = y; // ERROR "assignment\[ -~\]*Mutex"
|
||||
x = y; // ERROR "assignment.*Mutex"
|
||||
_ = x;
|
||||
}
|
||||
{
|
||||
var x, y [2]T;
|
||||
x = y; // ERROR "assignment\[ -~\]*Mutex"
|
||||
x = y; // ERROR "assignment.*Mutex"
|
||||
_ = x;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user