Skip to content

No error when using string as int #2885

@concatime

Description

@concatime

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions