[SR-8700] String() function doesn't catch negative number as input for count #51213
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Attachment: Download
Environment
Ubuntu 18.04 Gnome
Swift 4.2-CONVERGENCE (https://swift.org/builds/swift-4.2-convergence/ubuntu1804/swift-4.2-CONVERGENCE/swift-4.2-CONVERGENCE-ubuntu18.04.tar.gz)
Additional Detail from JIRA
md5: c8dddacabc07b6e47b65787cb970e603
Issue Description:
If you try to run the following code sample it crashes with an Illegal instruction,
I am new to swift (started some hours ago....), so I am not sure if this is a bug?! apologies in advance for the inconvenience 🙂
I think this problem can be fixed if the String function takes an UInt type instead of Int
The text was updated successfully, but these errors were encountered: