musictheory / NilScript

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

"Unknown identifier" on wrong line for method definition. #101

Open iccir opened 8 years ago

iccir commented 8 years ago

While refactoring SwiffRect to Rect in our sourcebase, the following code:

1   - (void) renderPlacedObjects: (Array<SwiffPlacedObject>) placedObjects 
2                        context: (CanvasRenderingContext2D) context
3                    invalidRect: (SwiffRect) invalidRect

Produces a warning on Line 1 about SwiffRect not being a known type. It would be nice to move this warning to line 3.