Skip to content

Wrong triggering error "Non-integer size argument to make" #2132

Closed
@linniksa

Description

@linniksa
package main

import "fmt"

func main() {
    type test uint32
    foo := make([]int, test(2))
    fmt.Println(foo)
}
package main

import "fmt"

func main() {
    foo := make([]int, uint64(2))
    fmt.Println(foo)
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions