3 // Copyright 2018 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.
16 p, ok := recover().(error)
17 if ok && strings.Contains(p.Error(), "different scopes") {
44 F1() // set X to F1's T
45 F2() // check that X is not F2's T
46 F3() // check that X is not package T
47 F4() // set X to package T
48 F2() // check that X is not F2's T