Hi,

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
following error:


error: value of type 'NSRange' (aka '_NSRange') has no member 'lowerBound'


I have looked into the implementation of NSRange in corelibs-foundation
<https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSRange.swift>,
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?


Best regards,

Barbara
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users
  • [swift-users] NSRan... Barbara Reichart via swift-users
    • Re: [swift-use... Людвиг Вальда Васкес via swift-users
      • Re: [swift... Jordan Rose via swift-users
        • Re: [s... Людвиг Вальда Васкес via swift-users
          • Re... Людвиг Вальда Васкес via swift-users

Reply via email to