mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix type inference in TestValue
This commit is contained in:
parent
1222e24836
commit
2eb51b9c41
1 changed files with 2 additions and 2 deletions
|
@ -7,13 +7,13 @@ module Spectator
|
|||
getter value : T
|
||||
|
||||
# Creates the expression value with a custom label.
|
||||
def initialize(@value, label : String)
|
||||
def initialize(@value : T, label : String)
|
||||
super(label)
|
||||
end
|
||||
|
||||
# Creates the expression with a stringified value.
|
||||
# This is used for the "should" syntax and when the label doesn't matter.
|
||||
def initialize(@value)
|
||||
def initialize(@value : T)
|
||||
super(@value.to_s)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue