musictheory / NilScript

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

Typechecker warnings for ivars/properties on wrong line #98

Closed iccir closed 8 years ago

iccir commented 8 years ago

With this code:

1    @implementation Foo 
2 
3    @property ClassThatDoesNotExist moo;
4    @end

The typechecker warning is on line 1. It should be on line 3.

The same is true with ivars (Line 1 instead of 3):

1    @implementation Foo {
2 
3        ClassThatDoesNotExist moo
4    }
5    @end