[swift-users] NSRange error in docker
reichart.barbara at gmail.com
Mon Sep 25 08:40:31 CDT 2017
I am using swift in a docker container. Now I wanted to use NSRange, which
according to the page is already fully implemented for linux.
However when I try to use 'lowerBound' or 'upperBound' it gives me the
error: value of type 'NSRange' (aka '_NSRange') has no member 'lowerBound'
I have looked into the implementation of NSRange in corelibs-foundation
where I can see that both properties have been defined in an extension.
Unfortunately, it seems that I can only use things defined on _NSRange and
not on its alias NSRange. Do you guys have any idea, what I am doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users