[swift-dev] Breaking brain

Roman Pastushkov xnucleargeminix at aol.com
Wed Feb 1 03:34:41 CST 2017


Hello everyone!

I iam trying compile 4 lines prog on linux:

import Foundation
let filemgr = FileManager.default
let path = filemgr.currentDirectoryPath()
print(path)


and get erorr /main.swift:3:40: error: cannot call value of non-function type 'String'
let path = filemgr.currentDirectoryPath()
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                                       
<unknown>:0: error: build had 1 command failures






why?
Roman Pastushkov
xnucleargeminix at aol.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170201/f20d1003/attachment.html>


More information about the swift-dev mailing list