Open compnerd opened 5 years ago
I bet this reproduces on other platforms if you can figure out what it was trying to import.
This is due to the use of anonymous fields in structures which Microsoft uses extensively in the Windows SDK. Something like this does the trick:
```
import WinSDK
_ = htont()
```
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Improvement, Android, ClangImporter, Linux, StarterBug, Windows | |Assignee | None | |Priority | Medium | md5: e340d6800850b57905470aa79f4a8815Issue Description:
Seems that the typo correction on windows asserts trying to create an anonymous field accessor. This occurred at least in
Data.swift
inswift-corelibs-foundation
trying to typo correctmunmap
.