Source file test/alias3.dir/b.go

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

View as plain text