Swift: Linker error when testing perfectly cromulent method

Originator:rix.rob
Number:rdar://21172325 Date Originated:30-May-2015 11:31 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (6E23)
Classification:Serious Bug Reproducible:Always
 
Summary:
I’m seeing a weird linker error when attempting to test a pretty reasonable method.


Steps to Reproduce:
1. Clone https://github.com/robrix/SwiftCheck.git
2. Check out this commit: c59af2a9c7cf13d73e348c749bb70a0a72568421
3. Open the Xcode project.
4. Build & run the tests.


Expected Results:
Success.


Actual Results:
Linker error:
Undefined symbols for architecture x86_64:
  "__TZFV10SwiftCheck3Gen8weightedU__fMGS0_Q__FGSaTSiQ__GS0_Q__", referenced from:
      __TFFC15SwiftCheckTests7GenSpec7testAllFS0_FT_T_U1_FSiP10SwiftCheck8Testable_ in GenSpec.o
ld: symbol(s) not found for architecture x86_64


Regression:
This occurs in Xcode 6.3 as well as Xcode 6.4b2. I have not tested other versions.


Notes:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!