The "const" in the first case is not scoped to just that case statement. So the first const is already available in the second case.
Solutions:
1. Add curly statements to case to create a block scope (lint rules exist for this).
2. Don't use switch (aka, the Python solution
)
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.