We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de1eb5 commit a9d85aaCopy full SHA for a9d85aa
1 file changed
spec/t_ruby/compiler_spec.rb
@@ -260,10 +260,10 @@
260
context "with return type validation" do
261
it "raises TypeCheckError when return type mismatches declaration" do
262
Dir.mktmpdir do |tmpdir|
263
- # Method declares bool but returns nil
+ # Method declares Boolean but returns nil
264
input_file = File.join(tmpdir, "type_mismatch.trb")
265
File.write(input_file, <<~RUBY)
266
- def test(name: String): bool
+ def test(name: String): Boolean
267
return
268
end
269
RUBY
@@ -341,7 +341,7 @@ def greet(name: String): String
341
# Type mismatch but type_check is disabled in config
342
input_file = File.join(tmpdir, "skip_check.trb")
343
344
- def test(): bool
+ def test(): Boolean
345
346
347
0 commit comments