No error when using string as int
concatime opened this issue · 2 comments
concatime commented
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 commented
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 commented
Oh, thank you for the quick answer. I will take a look in the JetBrains issue.