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