RosettaCodeData/Task/Constrained-genericity/Swift/constrained-genericity-3.swift
2016-12-05 23:44:36 +01: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)"