You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require"spectator"deffour2+2endSpectator.describe Int32do
let!(:x) { four }
it("returns 4") { expect(x).to eq(4) }
end
Does not compile because crystal can't infer what type four returns. Strangely though if I replace let! with let it works fine and passes as it should. While I get why it doesn't compile with naive implementation of let!, you seem to have solved it with let, so it would be nice if it worked with let! too.
The text was updated successfully, but these errors were encountered:
Didn't mean to close this, but can you confirm that this is fixed in the latest version on master (0.9.2)? The code in your example works now. Hopefully that fixes any other issues with it that are non-trivial.
Does not compile because crystal can't infer what type
four
returns. Strangely though if I replacelet!
withlet
it works fine and passes as it should. While I get why it doesn't compile with naive implementation oflet!
, you seem to have solved it withlet
, so it would be nice if it worked withlet!
too.The text was updated successfully, but these errors were encountered: