Source file test/fixedbugs/issue33219.dir/a.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 a
     6  
     7  type A interface {
     8  	M(i interface{}) interface{}
     9  }
    10  
    11  var a1 A
    12  var a2 A
    13  
    14  func V(p A, k, v interface{}) A {
    15  	defer func() { a1, a2 = a2, a1 }()
    16  	return a1
    17  }
    18  

View as plain text