kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/syntax.go (about) 1 // Package syntax contains tricky syntactic forms that the indexer needs to 2 // handle correctly. This test "passes" if the indexer doesn't crash. 3 package syntax 4 5 type oldStruct struct { 6 n int 7 } 8 9 // A struct type that is an alias doesn't add new fields. 10 type newStruct oldStruct 11 12 type oldInterface interface { 13 foo() 14 } 15 16 // An interface type that is an alias doesn't add new methods. 17 type newInterface oldInterface