Skip to content

Instantly share code, notes, and snippets.

@tylerstillwater
Created June 24, 2020 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerstillwater/153b5caa1d4d0a4b30cbcdcdfd690ded to your computer and use it in GitHub Desktop.
Save tylerstillwater/153b5caa1d4d0a4b30cbcdcdfd690ded to your computer and use it in GitHub Desktop.
package main
type thisDoesNotWork struct {
i int
}
func main() {
var j int64
thisWorks(j) // quick fix convert works here
_ = thisDoesNotWork{
i: j, // quick fix convert is not available here
}
}
func thisWorks(i int) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment