Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,30 @@
class Animal end
class Dog extends Animal
function type() return "Dog" end
end
class Cat extends Animal
function type() return "Cat" end
end
class Labrador extends Dog
function type() return "Labrador" end
end
class Collie extends Dog
function type() return "Collie" end
end
local animals = {new Dog(), new Cat(), new Labrador(), new Collie()}
for animals as a do
print($"{a:type()} is an Animal = {a instanceof Animal}")
end
print()
for animals as a do
print($"{a:type()} is a Dog = {a instanceof Dog}")
end
print()
for animals as a do
print($"{a:type()} is a Cat = {a instanceof Cat}")
end