mirror of
https://github.com/golang/go.git
synced 2025-05-08 00:53:07 +00:00
Fixes #18661. Change-Id: I865802a9b88ab22560c9914a70901d1924242bdc Reviewed-on: https://go-review.googlesource.com/35236 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
19 lines
312 B
Go
19 lines
312 B
Go
// compile
|
|
|
|
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package p
|
|
|
|
var (
|
|
e interface{}
|
|
s = struct{ a *int }{}
|
|
b = e == s
|
|
)
|
|
|
|
func test(obj interface{}) {
|
|
if obj != struct{ a *string }{} {
|
|
}
|
|
}
|