* implements https://github.com/nim-lang/RFCs/issues/260 * added a test case (cherry picked from commit 51e3e0c7c4)
51e3e0c7c4