Skip to content

Missing quickfix UnresolvedReferenceInspection - unknown field #2638

Open
@dlsniper

Description

@dlsniper

The inspection reports Unknown field [...] in struct literal

package main

type demo struct{}

func main() {
    _ = demo{
        field: 1, // error
    }
}

This should be fixed by creating a field for the user if the struct is defined in the current project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions