ID:1403812
 
(See the best response by Ter13.)
Code:
var/test = /test_datum{variable=/test/path}


Problem description:
I make use of the modified types notation quite a bit. Sometimes, upon making a change to a project, i.e. copy/pasting code from one file to another, an error pointing to a random modified type will show up on compilation: bad constant.

The error only occurs in regard to variables which have been set to a type path (e.g. bad constant: /test/path). The error goes away if the change that preceded it is reversed. The changes have nothing to do with the type paths themselves, or affect them in any way.

Is there some kind of limitation I'm hitting in regards to modified types? Some clarification of what the error means would be great.
Best response
Could be caused by leaving an open bracket somewhere. Without knowing about your prior change, it'd be hard to say.
It is always literally just re-organizing, adding or erasing some unrelated code that brings it about. No unclosed brackets or anything. If I remove the path from the modified type it goes away.