Source file test/fixedbugs/issue29612.dir/p1/ssa/ssa.go

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ssa
     6  
     7  type T struct{}
     8  
     9  func (T) foo() {}
    10  
    11  type fooer interface {
    12  	foo()
    13  }
    14  
    15  func Unused(v interface{}) {
    16  	v.(fooer).foo()
    17  	v.(interface{ foo() }).foo()
    18  }
    19  

View as plain text