Skip to content

Commit

Permalink
Test case for unkeyed struct literal
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Jul 12, 2024
1 parent f8e0ac3 commit 6f00850
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testdata/examples/unittest/literals.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ func oddLiterals() allTheLiterals {
b: false,
}
}

func unKeyedLiteral() allTheLiterals {
return allTheLiterals{0, "a", false}
}

0 comments on commit 6f00850

Please sign in to comment.