Jonathan Mew
06/25/2019, 9:32 AM!is
marstran
06/25/2019, 9:35 AMDico
06/25/2019, 10:01 AMJonathan Mew
06/25/2019, 10:05 AMDico
06/25/2019, 10:06 AMmeow
could be declared on Cat
, in which case animal
is smart casted to Cat
animal
is a Cat
following the function's first statementJonathan Mew
06/25/2019, 10:14 AMif (animal !is Cat)
škarelpeeters
06/25/2019, 10:20 AMJonathan Mew
06/25/2019, 10:22 AMif (animal !is Cat) return animal.meow()
Thank you for saving me from myself. I'll go get some more sleep now.karelpeeters
06/25/2019, 11:37 AMSiebelsTim
06/25/2019, 1:55 PM