1// compile 2 3// Copyright 2016 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 7package x 8 9type T struct { 10 i int 11 e interface{} 12} 13 14func (t *T) F() bool { 15 if t.i != 0 { 16 return false 17 } 18 _, ok := t.e.(string) 19 return ok 20} 21 22var x int 23 24func g(t *T) { 25 if t.F() || true { 26 if t.F() { 27 x = 0 28 } 29 } 30} 31