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 5package b 6 7import "./a" 8 9type Service uint64 10 11var q *Service 12var r *Service 13 14type f struct{} 15 16var fk f 17 18func No(s a.A, qq uint8) *Service { 19 defer func() { q, r = r, q }() 20 return q 21} 22 23func Yes(s a.A, p *uint64) a.A { 24 return a.V(s, fk, p) 25} 26