Add non-captured block argument

Preparing for Crystal 1.8.0
https://github.com/crystal-lang/crystal/issues/8764
This commit is contained in:
Michael Miller 2023-01-26 17:19:31 -07:00
parent 5c08427ca0
commit 726a2e1515
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2
18 changed files with 48 additions and 47 deletions

View file

@ -297,7 +297,7 @@ Spectator.describe Spectator::Double do
arg
end
stub def self.baz(arg)
stub def self.baz(arg, &)
yield
end
end

View file

@ -364,7 +364,7 @@ Spectator.describe Spectator::Mock do
arg
end
def self.baz(arg)
def self.baz(arg, &)
yield
end
@ -929,7 +929,7 @@ Spectator.describe Spectator::Mock do
arg
end
def self.baz(arg)
def self.baz(arg, &)
yield
end
end

View file

@ -259,7 +259,7 @@ Spectator.describe Spectator::NullDouble do
arg
end
stub def self.baz(arg)
stub def self.baz(arg, &)
yield
end
end