2012-02-18 22:15:42 +01:00
|
|
|
// run
|
2012-02-06 15:41:01 +01:00
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
2012-02-06 15:41:01 +01:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Issue 2821
|
|
|
|
package main
|
|
|
|
|
|
|
|
type matrix struct {
|
|
|
|
e []int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a matrix) equal() bool {
|
|
|
|
for _ = range a.e {
|
|
|
|
}
|
2014-07-16 19:27:10 -04:00
|
|
|
for range a.e {
|
|
|
|
}
|
2012-02-06 15:41:01 +01:00
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var a matrix
|
|
|
|
var i interface{}
|
|
|
|
i = true && a.equal()
|
|
|
|
_ = i
|
|
|
|
}
|