mirror of
https://github.com/golang/go.git
synced 2025-11-08 20:51:02 +00:00
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 }{} {
|
||
|
|
}
|
||
|
|
}
|