Skip to content

Commit

Permalink
Merge pull request #1342 from tompng/fix/kernel-p-empty
Browse files Browse the repository at this point in the history
Fix Kernel.p and Kernel.pp type with no argument
  • Loading branch information
soutaro authored Jul 14, 2023
2 parents bc36981 + 7150c68 commit 82520f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,8 @@ module Kernel : BasicObject
# [0..4, 0..4, 0..4]
#
def self?.p: [T] (T arg0) -> T
| (*untyped arg0) -> Array[untyped]
| (untyped, untyped, *untyped) -> Array[untyped]
| () -> nil

# <!--
# rdoc-file=lib/pp.rb
Expand All @@ -1252,7 +1253,8 @@ module Kernel : BasicObject
# pp returns argument(s).
#
def self?.pp: [T] (T arg0) -> T
| (*untyped arg0) -> Array[untyped]
| (untyped, untyped, *untyped) -> Array[untyped]
| () -> nil

# <!--
# rdoc-file=random.c
Expand Down

0 comments on commit 82520f1

Please sign in to comment.