Mentions légales du service

Skip to content

Declaring a variable name using a constant name declared inline does not produce an error

Created by: stephanemagnenat

The following code compiles:

const toto = 1
var toto = 3

when it should not.

As pointed out by @ypiguet-epfl this is due to the check in compiler/parser.cpp:402 verifying commonDefinitions and not constantsMap.