Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

False positive on var _ MyInterface = MyStruct{} #11

Open
maratori opened this issue Feb 17, 2021 · 0 comments · May be fixed by #18
Open

False positive on var _ MyInterface = MyStruct{} #11

maratori opened this issue Feb 17, 2021 · 0 comments · May be fixed by #18

Comments

@maratori
Copy link

There is an idiomatic way to do compile time check that a struct implements an interface.
I think such declarations should be ignored by the linter.

var _ MyInterface = MyStruct{}
@breezewish breezewish linked a pull request Jan 21, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant