1 // compile 2 3 // Copyright 2017 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package p 8 9 var ( 10 e interface{} 11 s = struct{ a *int }{} 12 b = e == s 13 ) 14 15 func test(obj interface{}) { 16 if obj != struct{ a *string }{} { 17 } 18 } 19