mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removed trailing spaces
This commit is contained in:
parent
52a8d7b3f5
commit
e60a17379e
@ -154,21 +154,21 @@ As a result, the following code is illegal and cause the compiler to throw an er
|
|||||||
contract ScopingErrors {
|
contract ScopingErrors {
|
||||||
function scoping() {
|
function scoping() {
|
||||||
uint i = 0;
|
uint i = 0;
|
||||||
|
|
||||||
while (i++ < 1) {
|
while (i++ < 1) {
|
||||||
uint same1 = 0;
|
uint same1 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (i++ < 2) {
|
while (i++ < 2) {
|
||||||
uint same1 = 0;// Illegal, second declaration of same1
|
uint same1 = 0;// Illegal, second declaration of same1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function minimalScoping() {
|
function minimalScoping() {
|
||||||
{
|
{
|
||||||
uint same2 = 0;
|
uint same2 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
uint same2 = 0;// Illegal, second declaration of same2
|
uint same2 = 0;// Illegal, second declaration of same2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user