blob: 589c45fc1aeb23320e19ea8bf8a82a66504cfa02 [file] [log] [blame]
package a
import "fmt"
func TypeStuff() { //@Stuff
var x string
switch y := interface{}(x).(type) { //@mark(switchY, "y"),godef("y", switchY)
case int: //@mark(intY, "int")
fmt.Printf("%v", y) //@hoverdef("y", intY)
case string: //@mark(stringY, "string")
fmt.Printf("%v", y) //@hoverdef("y", stringY)
}
}