Commit 1ed7ca6
committed
Fixed [error] Cannot pass a value of type
```
lib/ruby_header_parser/parser.rb:223:57: [error] Cannot pass a value of type `(:ref | :raw | nil)` as an argument of type `(:ref | nil)`
│ (:ref | :raw | nil) <: (:ref | nil)
│ :raw <: (:ref | nil)
│ :raw <: :ref
│
│ Diagnostic ID: Ruby::ArgumentTypeMismatch
│
└ TyperefDefinition.new(type: typeref_type, pointer: typeref_pointer)
~~~~~~~~~~~~~~~
```(:ref | :raw | nil) as an argument of type (:ref | nil)
1 parent 7ce2dcf commit 1ed7ca6
File tree
2 files changed
+4
-4
lines changed- lib/ruby_header_parser
- sig/ruby_header_parser
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments