mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Workaround Crystal compiler bug
This commit is contained in:
parent
e05ef94ef5
commit
2131967ba6
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module Spectator
|
||||||
getter constraint : AbstractArguments?
|
getter constraint : AbstractArguments?
|
||||||
|
|
||||||
# Creates the base of the stub.
|
# Creates the base of the stub.
|
||||||
def initialize(@method : Symbol, @constraint : Arguments? = nil)
|
def initialize(@method : Symbol, @constraint : AbstractArguments? = nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks if a method call should receive the response from this stub.
|
# Checks if a method call should receive the response from this stub.
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Spectator
|
||||||
getter value : T
|
getter value : T
|
||||||
|
|
||||||
# Creates the stub.
|
# Creates the stub.
|
||||||
def initialize(method : Symbol, @value : T, constraint : Arguments? = nil)
|
def initialize(method : Symbol, @value : T, constraint : AbstractArguments? = nil)
|
||||||
super(method, constraint)
|
super(method, constraint)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue