Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error when using string as int #2885

Open
concatime opened this issue Apr 9, 2017 · 2 comments
Open

No error when using string as int #2885

concatime opened this issue Apr 9, 2017 · 2 comments

Comments

@concatime
Copy link

concatime commented Apr 9, 2017

DETAILS:

  • IntelliJ IDEA 2017.1
  • Build #IC-171.3780.107, built on March 22, 2017
  • JRE: 1.8.0_112-release-799-b5 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Windows 10 10.0
  • GoPluginVersion: 0.171.1931

Hi.
I want to know if it's normal that no errors are shown when I try:

package main

import "fmt"

func main() {
	bar := "hello"
	bar = 2
	fmt.Printf(bar)
}

Thank you.

@dlsniper
Copy link
Member

dlsniper commented Apr 9, 2017

Hi, fyi, this is flagged as a problem in the JetBrains maintained plugin: https://plugins.jetbrains.com/plugin/9568-go or the IDE counterpart: https://www.jetbrains.com/go/ Hope it helps.

@concatime
Copy link
Author

Oh, thank you for the quick answer. I will take a look in the JetBrains issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants