RosettaCodeData/Task/Constrained-genericity/Swift/constrained-genericity-3.swift
2023-07-01 13:44:08 -04:00

2 lines
112 B
Swift

func foo<T: Eatable>(x: T) { }
// although in this case this is no more useful than just "func foo(x: Eatable)"