Skip to content

internal compiler error: missed typecheck #746

@stevenblenkinsop

Description

@stevenblenkinsop
1. What is a short input program that triggers the error?
package main

type I interface { F() }

type T struct{}

func (T) F() {}

func main() {
    switch I(T{}).(type) { // line 10
    case interface{}: // do nothing
    }
}

2. What is the full compiler output?
missed typecheck [99fcd28]
.   LITERAL-B1 u(1) a(1) l(10) x(-1000000000) ideal bool
TestGo.go:10: internal compiler error: missed typecheck

3. What version of the compiler are you using?  (Run it with the -V flag.)
8g version 5338

Attachments:

  1. TestGo.go (151 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions