Commit 0371bd7
committed
Fixed [error] Cannot pass a value of type
```
lib/ruby_header_parser/parser.rb:257:58: [error] Cannot pass a value of type `::Hash[::Symbol, bool]` as an argument of type `::String`
│ ::Hash[::Symbol, bool] <: ::String
│ ::Object <: ::String
│ ::BasicObject <: ::String
│
│ Diagnostic ID: Ruby::ArgumentTypeMismatch
│
└ lines = File.open(filepath, "rb") { |f| f.readlines(chomp: true) }
~~~~~~~~~~~
```::Hash[::Symbol, bool] as an argument of type ::String
1 parent 9285dba commit 0371bd7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments