Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Channel panic #91

Closed
quarnster opened this issue Oct 4, 2013 · 0 comments
Closed

Channel panic #91

quarnster opened this issue Oct 4, 2013 · 0 comments
Assignees

Comments

@quarnster
Copy link
Contributor

This is a minimal repro of the convertI2V(interface{}, *testing.T) issue mentioned in #48

package main

import "fmt"

func main() {
    type T struct {
        signal chan interface{}
    }
    var t = &T{make(chan interface{})}
    go func(t2 *T) {
        t2.signal <- t2
    }(t)
    t3 := (<-t.signal).(*T)
    fmt.Println(t3)
}
@ghost ghost assigned axw Oct 5, 2013
@axw axw closed this as completed in 12f466a Oct 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants