musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Bogus "Duplicate declaration" warning #95

Closed iccir closed 8 years ago

iccir commented 8 years ago

On the oj2 branch, I keep getting bogus warnings about duplicate protocol decs during incremental builds.

WebApp/Exercises/Views/SettingsStaffPositionView.oj:8 Duplicate declaration of protocol 'SettingsStaffPositionViewDelegate'
iccir commented 8 years ago

OJFile.error wasn't being cleared. I split this into one error per phase (parse / build / generate / etc) and ensure that it is cleared when the phase succeeds.