Skip to content

Commit

Permalink
Fix rbs validate warning
Browse files Browse the repository at this point in the history
```
❯ bundle exec rbs -I sig validate
W, [2024-06-07T16:09:23.137310 #4825]  WARN -- rbs: sig/lrama/grammar.rbs:74:19...74:37: `void` type is only allowed in return type or generics parameter (RBS::WillSyntaxError)

      def validate!: () -> (void | bot)
                     ^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
ydah committed Jun 7, 2024
1 parent 9bab225 commit e9df5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sig/lrama/grammar.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module Lrama
def epilogue_first_lineno=: (Integer epilogue_first_lineno) -> Integer
def epilogue=: (String epilogue) -> String
def prepare: () -> void
def validate!: () -> (void | bot)
def validate!: () -> void
def find_rules_by_symbol!: (Grammar::Symbol sym) -> Array[Rule]
def find_rules_by_symbol: (Grammar::Symbol sym) -> Array[Rule]?

Expand Down

0 comments on commit e9df5fc

Please sign in to comment.