Skip to content

"Invalid recursive type" error for non-recursive types #582

@mirtchovski

Description

@mirtchovski
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1.attempt to compile (6g) the following code:

package main

// this fails with "invalid recursive type test1"
type test1 test2
type test2 int64

// this compiles
//type test2 int64
//type test1 test2
func main () {
    return
}


What is the expected output? What do you see instead?
expected successful compilation; see:
test.go:4: invalid recursive type test1


What is your $GOOS?  $GOARCH?
linux, amd64

Which revision are you using?  (hg identify)
4c468c07d05c tip
(this bug did not occur a few days ago, unsure which revision introduced it)

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