Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespaces and modules in the Swift language

I've been experimenting with Swift on my way home from WWDC. One of the most compelling new features of Swift, in my opinion, was namespacing. I haven't managed to get it to work as I expected it should though. Please see the attached screenshot and let me know if you have an idea of what I'm doing wrong.

Declaring module global functionAttempting to utilize module function EDIT: I have of course tried to remove the import statement.

like image 847
rhummelmose Avatar asked Jun 08 '14 09:06

rhummelmose


1 Answers

Turns out that this is a known bug: https://devforums.apple.com/message/976286#976286

like image 169
rhummelmose Avatar answered Nov 04 '22 15:11

rhummelmose