Skip to content

len not reporting correct length  #841

@aaronstgeorge-wf

Description

@aaronstgeorge-wf

On commit 8dffc02ea1cb8398bb73f30424697c60fcf8d4c5 the following code panics:

a := "a"
b := "b"
ab := a + b
if len(a+b) != len(ab) {
	panic("unreachable")
}

Using go1.10.3 darwin/amd64 it does not.

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