Merge pull request #62814 from KoBeWi/strint

Restore numeric from String constructors
This commit is contained in:
Rémi Verschelde
2022-11-15 22:29:55 +01:00
4 changed files with 74 additions and 0 deletions

View File

@@ -52,6 +52,13 @@
Constructs an [int] as a copy of the given [int].
</description>
</constructor>
<constructor name="int">
<return type="int" />
<param index="0" name="from" type="String" />
<description>
Converts a [String] to an [int], following the same rules as [method String.to_int].
</description>
</constructor>
<constructor name="int">
<return type="int" />
<param index="0" name="from" type="bool" />