I noticed that if I write something like:
static void Main(string[] args)
{
const const const bool flag = true;
}
The compiler doesn't warn me of the multiple const
s. So this seems to mimic C modifiers, as they are idempotent.
However, if I write:
private readonly readonly int a;
The compiler does warn me of the duplicated readonly
.
So what's going on here? Are modifiers idempotent or not?
csc version 1.0.0.50618