Workaround Crystal compiler bug

This commit is contained in:
Michael Miller 2022-03-31 22:54:03 -06:00
parent e05ef94ef5
commit 2131967ba6
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module Spectator
getter constraint : AbstractArguments?
# Creates the base of the stub.
def initialize(@method : Symbol, @constraint : Arguments? = nil)
def initialize(@method : Symbol, @constraint : AbstractArguments? = nil)
end
# Checks if a method call should receive the response from this stub.

View file

@ -8,7 +8,7 @@ module Spectator
getter value : T
# Creates the stub.
def initialize(method : Symbol, @value : T, constraint : Arguments? = nil)
def initialize(method : Symbol, @value : T, constraint : AbstractArguments? = nil)
super(method, constraint)
end
end