GOLANGTESTS Telegram 376
Что выведет код ?


package main

import "fmt"

type Number interface {
int
}

func sum[T Number](a, b T) T {
return a + b
}

func main() {
fmt.Println(sum(2, 3))
}


Ответ

@golangtests
👍8👎1



tgoop.com/golangtests/376
Create:
Last Update:

Что выведет код ?


package main

import "fmt"

type Number interface {
int
}

func sum[T Number](a, b T) T {
return a + b
}

func main() {
fmt.Println(sum(2, 3))
}


Ответ

@golangtests

BY Go tests




Share with your friend now:
tgoop.com/golangtests/376

View MORE
Open in Telegram


Telegram News

Date: |

End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance. Hui said the time period and nature of some offences “overlapped” and thus their prison terms could be served concurrently. The judge ordered Ng to be jailed for a total of six years and six months. Informative While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good. Telegram channels fall into two types:
from us


Telegram Go tests
FROM American