Skip to content

compiler not diagnosing invalid assignment #804

@rsc

Description

@rsc
package main

func main() {
    m := make(map[uint64][8]*int)
    x := 1234
    m[0][0] = &x
    if m[0][0] == nil {
        panic("You fell over a trip wire")
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions