whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func testfn[T any](arg T) {
|
||||
fmt.Println(arg)
|
||||
}
|
||||
|
||||
func main() {
|
||||
testfn[uint16](1)
|
||||
testfn[float64](2.1)
|
||||
}
|
||||
Reference in New Issue
Block a user