Skip to content

A pointer_type parsing bug #191

Description

@mrlzh

Here is an example of pointer_type parsing error.
The code '* (* [] byte)' being parsed as pointer.type is incorrect,it should be an unary_expression.

import "fmt"

func main()  {
	var sUnsafe string = "hello"
	*(*[]byte)(unsafe.Pointer(&sUnsafe))
	//*((*[]byte)(unsafe.Pointer(&sUnsafe)))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions