On Mon, 22 Feb 2021 at 18:07, Khosrow Afroozeh
wrote:
> aha, thanks for your help! One problem down.
>
> The error message is pretty cryptic though, I’d assumed the type inference
> would automatically take care of it, or complain about instantiation.
>
I think it should probably work, but curre
aha, thanks for your help! One problem down.
The error message is pretty cryptic though, I’d assumed the type inference
would automatically take care of it, or complain about instantiation.
> On Feb 22, 2021, at 6:25 PM, Volker Dobler wrote:
>
> On Monday, 22 February 2021 at 15:03:53 UTC+1 Kh
On Monday, 22 February 2021 at 15:03:53 UTC+1 Khosrow Afroozeh wrote:
> type List[T any] []T
>
> 1. The current go2go implementation does not allow one to do this:
>
> func ToList[T any](v []T) List[T] {
> return List(v)
> }
>
> with the error: List(v) is not a type
>
> Is this a bug, shor