File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 260260 context "with return type validation" do
261261 it "raises TypeCheckError when return type mismatches declaration" do
262262 Dir . mktmpdir do |tmpdir |
263- # Method declares bool but returns nil
263+ # Method declares Boolean but returns nil
264264 input_file = File . join ( tmpdir , "type_mismatch.trb" )
265265 File . write ( input_file , <<~RUBY )
266- def test(name: String): bool
266+ def test(name: String): Boolean
267267 return
268268 end
269269 RUBY
@@ -341,7 +341,7 @@ def greet(name: String): String
341341 # Type mismatch but type_check is disabled in config
342342 input_file = File . join ( tmpdir , "skip_check.trb" )
343343 File . write ( input_file , <<~RUBY )
344- def test(): bool
344+ def test(): Boolean
345345 return
346346 end
347347 RUBY
You can’t perform that action at this time.
0 commit comments