2013-09-18 01:06:58 +00:00
|
|
|
// compile
|
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2013 The Go Authors. All rights reserved.
|
2013-09-18 01:06:58 +00: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 16:59:02 +00:00
|
|
|
// supporting an implicit conversion to an interface type. This used
|
2013-09-18 01:06:58 +00: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
|
|
|
|
}
|