Expected end of statement: semicolon, newline, or end of block; not a
instead of something like: Unknown type UnkownType for local declaration
brianTue 16 Feb 2010
I think you are using an older version - because that warning is no longer in the compiler. Latest version is 1.0.51
jessevdamWed 17 Feb 2010
I retried it in the 1.0.51 version and got:
Expected end of statement: semicolon, newline, or end of block; not |
The warn message is indeed gone, but I think is still should give a unknown type error or I am wrong?
brianWed 17 Feb 2010
The parser was designed around the fact that | could be bitwise-or or closure; of course now that we've gotten rid of bitwise-or the error handling can be cleaned up. But stuff like that is pretty low on the priority queue.
jessevdam Tue 16 Feb 2010
When having the following construct
attr := someList.find |UnkownType a->Bool| { return a.name == name }
Then I get the errors:
or
method calla
instead of something like: Unknown type
UnkownType
for local declarationbrian Tue 16 Feb 2010
I think you are using an older version - because that warning is no longer in the compiler. Latest version is 1.0.51
jessevdam Wed 17 Feb 2010
I retried it in the 1.0.51 version and got:
Expected end of statement: semicolon, newline, or end of block; not
|
The warn message is indeed gone, but I think is still should give a unknown type error or I am wrong?
brian Wed 17 Feb 2010
The parser was designed around the fact that
|
could be bitwise-or or closure; of course now that we've gotten rid of bitwise-or the error handling can be cleaned up. But stuff like that is pretty low on the priority queue.