Debian Codegraph @

fmts/testdata/sorbet.in

raw
1 sample.rb:13: Method barr does not exist on A https://srb.help/7003
2 13 | A.new.barr(91) # error: Typo!
3 ^^^^^^^^^^^^^^
4 Autocorrect: Use `-a` to autocorrect
5 sample.rb:13: Replace with bar
6 13 | A.new.barr(91) # error: Typo!
7 ^^^^
8
9
10 sample.rb:14: Expected Integer but found String("91") for argument x https://srb.help/7002
11 14 | A.new.bar("91") # error: Type mismatch!
12 ^^^^^^^^^^^^^^^
13 sample.rb:6: Method A#bar has specified x as Integer
14 6 | sig {params(x: Integer).returns(String)}
15 ^
16 Got String("91") originating from:
17 sample.rb:14:
18 14 | A.new.bar("91") # error: Type mismatch!
19 ^^^^
20 Errors: 2