const keyword in function scope

Former Member
Former Member
Is const a valid keyword in a function scope? Eclipse highlights it as an error, and the builder gives the output "ERROR: no viable alternative at input '{const'".

function test() {
const size = 10;

for( var i = 0; i < size; ++i ) {
// do work
}
}