Another place that needs a cast

This commit is contained in:
Michael Miller 2022-03-30 20:33:19 -06:00
parent 613c969fbb
commit 39f5ea34eb
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -277,7 +277,7 @@ module Spectator
# The stub couldn't be easily cast to match the return type.
# Get the value as-is from the stub.
# This will be compiled as a union of all known stubbed value types.
%value = {{stub}}.value
%value = {{stub}}.as(::Spectator::ValueStub).value
# Attempt to cast the value to the method's return type.
# If successful, which it will be in most cases, return it.