Skip to content

Compiler accepts curly-initializer syntax for private fields #86

@gopherbot

Description

@gopherbot

by jkinner:

What steps will reproduce the problem?
1. 6g DayOfWeek.go
2. 6g test.go
3. 6l test.6
4. ./6.out

What is the expected output? What do you see instead?
Expect to fail at step 2 with a compiler error. Instead, the compile and
link succeeds.

What is your $GOOS?  $GOARCH?
darwin/amd64

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <kevin@sb.org>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.

Attachments:

  1. DayOfWeek.go (177 bytes)
  2. test.go (180 bytes)

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