2012-02-18 14:15:42 -07:00
|
|
|
// run
|
2012-02-06 07:41:01 -07:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
2012-02-06 07:41:01 -07: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 17:27:10 -06:00
|
|
|
for range a.e {
|
|
|
|
}
|
2012-02-06 07:41:01 -07:00
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var a matrix
|
|
|
|
var i interface{}
|
|
|
|
i = true && a.equal()
|
|
|
|
_ = i
|
|
|
|
}
|