2019-06-27 16:37:50 -06:00
|
|
|
package rank
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
type strList []string
|
|
|
|
wantsStrList := func(strList) {}
|
|
|
|
|
|
|
|
var (
|
|
|
|
convA string //@item(convertA, "convA", "string", "var")
|
|
|
|
convB []string //@item(convertB, "convB", "[]string", "var")
|
|
|
|
)
|
|
|
|
wantsStrList(strList(conv)) //@complete("))", convertB, convertA)
|
|
|
|
}
|
2019-07-01 15:28:46 -06:00
|
|
|
|
|
|
|
func _() {
|
2019-10-22 22:50:40 -06:00
|
|
|
|
|
|
|
type myInt int
|
|
|
|
|
2019-07-01 15:28:46 -06:00
|
|
|
const (
|
|
|
|
convC = "hi" //@item(convertC, "convC", "string", "const")
|
|
|
|
convD = 123 //@item(convertD, "convD", "int", "const")
|
|
|
|
convE int = 123 //@item(convertE, "convE", "int", "const")
|
|
|
|
convF string = "there" //@item(convertF, "convF", "string", "const")
|
2019-10-22 22:50:40 -06:00
|
|
|
convG myInt = 123 //@item(convertG, "convG", "myInt", "const")
|
2019-07-01 15:28:46 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
var foo int
|
2019-10-22 22:50:40 -06:00
|
|
|
foo = conv //@rank(" //", convertE, convertD)
|
2019-07-01 15:28:46 -06:00
|
|
|
|
|
|
|
var mi myInt
|
2019-10-22 22:50:40 -06:00
|
|
|
mi = conv //@rank(" //", convertG, convertD, convertE)
|
|
|
|
mi + conv //@rank(" //", convertG, convertD, convertE)
|
2019-07-01 15:28:46 -06:00
|
|
|
|
2019-10-22 22:50:40 -06:00
|
|
|
1 + conv //@rank(" //", convertD, convertE, convertG)
|
2019-07-01 15:28:46 -06:00
|
|
|
|
|
|
|
type myString string
|
|
|
|
var ms myString
|
2019-10-22 22:50:40 -06:00
|
|
|
ms = conv //@rank(" //", convertC, convertF)
|
2019-07-01 15:28:46 -06:00
|
|
|
|
|
|
|
type myUint uint32
|
|
|
|
var mu myUint
|
2019-10-22 22:50:40 -06:00
|
|
|
mu = conv //@rank(" //", convertD, convertE)
|
2019-07-01 15:28:46 -06:00
|
|
|
}
|