diff --git a/core/kernel.rbs b/core/kernel.rbs index 23f808641..13b5cd9cb 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -675,7 +675,7 @@ module Kernel : BasicObject | (int | _ToR rational_like, exception: bool) -> Rational? | (int | _ToR numer, ?int | _ToR denom, ?exception: true) -> Rational | (int | _ToR numer, ?int | _ToR denom, exception: bool) -> Rational? - | [T] (Numeric&_RationalDiv[T] numer, Numeric denom, ?exception: bool) -> T + | [T] (Numeric & _RationalDiv[T] numer, Numeric denom, ?exception: bool) -> T | [T < Numeric] (T value, 1, ?exception: bool) -> T | (untyped, ?untyped, ?exception: bool) -> Rational? diff --git a/core/rbs/unnamed/env_class.rbs b/core/rbs/unnamed/env_class.rbs index 334fe5385..8683fd969 100644 --- a/core/rbs/unnamed/env_class.rbs +++ b/core/rbs/unnamed/env_class.rbs @@ -231,8 +231,8 @@ module RBS # %a{annotate:rdoc:copy:ENV.fetch} def fetch: (String name) -> String - | [X] (String name, X default) -> (String | X) - | [X] (String name) { (String) -> X } -> (String | X) + | [X] (String name, X default) -> (String | X) + | [X] (String name) { (String) -> X } -> (String | X) #