1// Copyright 2017 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 ( 8 "./a" 9 . "go/build" 10) 11 12func F(x float64) a.Float64 { 13 return x 14} 15 16type MyContext = Context // = build.Context 17 18var C a.Context = Default 19 20type S struct{} 21 22func (S) M1(x a.IntAlias) float64 { return a.Float64(x) } 23func (S) M2() Context { return Default } 24 25var _ a.I1 = S{} 26var _ a.I2 = S{} 27