Skip to content

Commit c30f46b

Browse files
authored
Merge pull request #2695 from sampersand/sampersand/2025-10-30/deprecate-toplevel-float
Deprecate top-level float
2 parents 66d2eac + 93a5f73 commit c30f46b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/builtin.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ type int = Integer | _ToInt
225225

226226
# Represents a `Float`, or a type convertible to it (via `.to_f`).
227227
#
228+
%a{deprecated: Use `_ToF` directly}
228229
type float = Float | _ToF
229230

230231
# Represents a `Range[T]`, or a type that acts like it (via `.begin`, `.end`, and `.exclude_end?`).

0 commit comments

Comments
 (0)