Skip to content

Expressions can be cuddled with for blocks, but not with if blocks #153

@MarvinJWendt

Description

@MarvinJWendt

image

Repro:

for i := 0; i < 4; i++ {
	fmt.Println()
}
Up(3)

if autoheight != 3 {
	t.Errorf("height should be 3 but is %d", autoheight)
}
Down(3)

wsl command used: wsl ./...
image

wsl -V=full: /home/main/go/bin/wsl version devel comments-go-here buildID=e631328272005e19fcb7774191f8cc3535d896a2a0ff3946a982e95dc9b3736c

GOOS: Arch Linux
GOARCH: amd64

Expected behaviour

Expressions cannot be cuddled with either for nor if blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions