From 2eb51b9c41ea5e9bf4564a6a6d5a738d8c61dd40 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 8 Aug 2019 17:05:44 -0600 Subject: [PATCH] Fix type inference in TestValue --- src/spectator/test_value.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/test_value.cr b/src/spectator/test_value.cr index dcee9a2..3071a92 100644 --- a/src/spectator/test_value.cr +++ b/src/spectator/test_value.cr @@ -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