Constrained genericity: Difference between revisions

m
(Added Kotlin)
m (→‎{{header|ooRexx}}: add output)
Line 962:
Tests for identity need to be performed at runtime using mechanisms
such as the object isA method.
<lang ooRexx>call dinnerTime "yogurt"
call dinnerTime "yogurt"
call dinnerTime .pizza~new
call dinnerTime .broccoli~new
Line 991 ⟶ 990:
return
end
else dish~eat</lang>
{{out}}
</lang>
<pre>I can't eat that!
 
mmmmmmmm, pizza.
ugh, do I have to?.</pre>
 
=={{header|OxygenBasic}}==
2,289

edits