Hallöchen!

The two most recent Go blog articles make we wonder why

    package main

    func do[T []E, E any](slice T) {
    }

    func main() {
            var a []float64
            do(a)
    }

is valid while

    package main

    func do[T []any](slice T) {
    }

    func main() {
            var a []float64
            do(a)
    }

is not.  The error message doe not help me.  Can someone explain
this?  Thank you!

Regards,
Torsten.

-- 
Torsten Bronger

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/87bkd7nern.fsf%40physik.rwth-aachen.de.

Reply via email to