Skip to content

No feedback on type errors #2191

@daandi

Description

@daandi

Problem description

There is no visible feedback on type errors. They are not highlighted on assignment or other operations.

bildschirmfoto 2015-12-29 um 17 48 23

Example code

type Celsius float64
type Fahrenheit float64
type Kelvin float64

var example Celsius = Fahrenheit(5) + Kelvin(6) // this should somehow be marked

as it leads to a build exception

go run main.go 
# src/tempconv
tempconv/tempconv.go:15: invalid operation: Fahrenheit(5) + Kelvin(6) (mismatched types Fahrenheit and Kelvin)

Versions:

Mac OS Yosemite
Intellij CE 15.0.2

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

go version
go version go1.5.2 darwin/amd64

Plugin Version: 0.9.748

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions