Skip to content

Assigning to unassigned structs leads to different results in Batch and Bash #60

@monstermichl

Description

@monstermichl

Assigning to unassigned structs leads to different results in Batch and Bash. Even though this should not be the biggest issue because this scenario should be avoided by the programmer anyway.

type easyStruct struct {
	a string
}

sl := []easyStruct{}
sl[0].a = "updated"

print(sl[0].a)

Batch

Bash

updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions