Skip to content

Different empty interfaces are mutually incompatible (under 6g) #74

Closed
@gopherbot

Description

@gopherbot

by punya.biswal:

What steps will reproduce the problem?

1. Try to create a heap with an underlying vector. (See attached source for 
details).

What is the expected output? What do you see instead?

It doesn't compile because *vector.Vector isn't heap.Interface (in 
particular, vector.Vector has Push(x vector.Element) and heap.Interface 
wants Push(x interface { }). This is odd because vector.Element is itself 
an empty interface.

What is your $GOOS?  $GOARCH?
GOOS=linux
GOARCH=amd64

Which revision are you sync'ed to?  (hg log -l 1)

3975:b51f...
Please provide any additional information below.

Attachments:

  1. element.go (236 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