Skip to content

6g error message: <epoch>: undefined: T #1474

@gopherbot

Description

@gopherbot

by marius@vastech.co.za:

The following source code leads to the misleading 6g compiler error:

<epoch>: undefined: T

Uncommenting the declaration of type T leads to correct compilation.

>>>>>>>>>>>


package main

//type T int

func main() {}

func (t *T) F() {}

<<<<<<<<<<<<<<

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g


Which operating system are you using?
OS X 10.6.6


Which revision are you using?  (hg identify)
f4f1a3a27d9d

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