diff --git a/core/array.rbs b/core/array.rbs index 000dba738a..80ab7ed5a9 100644 --- a/core/array.rbs +++ b/core/array.rbs @@ -1427,7 +1427,8 @@ class Array[unchecked out E] # # Related: see [Methods for Querying](rdoc-ref:Array@Methods+for+Querying). # - def count: () ?{ (E element) -> boolish } -> Integer + def count: () -> Integer + | () { (E element) -> boolish } -> Integer | (untyped object) -> Integer # where E: RBS::Ops::_Equal #