Compiler error [Answered]
So im getting compiler error, i understand what it means but i dont know why i get it can you explain to me?
24 Replies
im geting this error
![](https://utfs.io/f/cb72f00a-4297-4b34-bc13-9200b6ae1465-4pl4mu.png)
there
why cant i use the same name since its inside other
case
cases dont create scopes
you can manually add a scope thou
using
{ }
?yes
okay ill try
thought they do thanks
yw
where would i need to add
{ }
?below the case
the first one
yeah and wherei close
so wrap all your "case code" in that
tried and some are coloring in red
wait for it ![pepelaughing](https://cdn.discordapp.com/emojis/958789246255251516.gif)
![pepelaughing](https://cdn.discordapp.com/emojis/958789246255251516.gif)
the formatting gets wacky, but you get the point
put the break in the scope too what
how ugly is that
oh lol
okay all is working fine
i forgot to add break at the end
🙂
the scopes work
thanks
do i close this or sum
just type
/close
i was saying this because by default, VS adds indentations for case blocks
![PISSED](https://cdn.discordapp.com/emojis/1024209783873622037.gif)
![PISSED](https://cdn.discordapp.com/emojis/1024209783873622037.gif)
✅ This post has been marked as answered!