Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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