2013-09-17 19:06:58 -06:00
|
|
|
// compile
|
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2013 The Go Authors. All rights reserved.
|
2013-09-17 19:06:58 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Logical operation on named boolean type returns the same type,
|
2013-12-27 09:59:02 -07:00
|
|
|
// supporting an implicit conversion to an interface type. This used
|
2013-09-17 19:06:58 -06:00
|
|
|
// to crash gccgo.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
|
|
|
type B bool
|
|
|
|
|
|
|
|
func (b B) M() {}
|
|
|
|
|
|
|
|
type I interface {
|
|
|
|
M()
|
|
|
|
}
|
|
|
|
|
|
|
|
func F(a, b B) I {
|
|
|
|
return a && b
|
|
|
|
}
|