Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Corrected the comparison between an untyped constant and an inte…
…rface (gnolang#1732) This error is identified by gnolang#1426, here is a quick fix. It can also be seen as the beginning of a refactoring effort on gnolang#1426 to break it down into smaller ones. Reproduction of this issue: ```go package main func foo() uint64 { return 100 } func bar() interface{} { return foo() } func main() { println(100 == bar()) println(100 == foo()) println(uint64(100) == bar()) } ``` https://go.dev/play/p/ftkZeNziwdM Co-authored-by: Miloš Živković <[email protected]>
- Loading branch information