github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/alias/alias.go (about)

     1  // Tests of Go 1.9 type aliases.
     2  // See go.tools/guru/guru_test.go for explanation.
     3  // See alias.golden for expected query results.
     4  
     5  package alias // @describe describe-pkg "alias"
     6  
     7  type I interface { // @implements implements-I "I"
     8  	f()
     9  }
    10  
    11  type N int
    12  
    13  func (N) f() {}
    14  
    15  type M = N // @describe describe-def-M "M"
    16  var m M    // @describe describe-ref-M "M"
    17  
    18  type O N // @describe describe-O "O"
    19  
    20  type P = struct{ N } // @describe describe-P "N"
    21  
    22  type U = undefined // @describe describe-U "U"
    23  type _ = undefined // @describe describe-undefined "undefined"