1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/fixtures/redefines-builtin-id.go
2018-09-13 19:19:49 -07:00

22 lines
527 B
Go

package fixtures
func (this data) vmethod() {
nil := true // MATCH /assignment creates a shadow of built-in identifier nil/
iota = 1 // MATCH /assignment modifies built-in identifier iota/
}
func append(i, j int) { // MATCH /redefinition of the built-in function append/
}
type Type int16 // MATCH /redefinition of the built-in type Type/
func delete(set []int64, i int) (y []int64) { // MATCH /redefinition of the built-in function delete/
for j, v := range set {
if j != i {
y = append(y, v)
}
}
return
}