aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-05 02:21:03 +0800
committerGitHub <noreply@github.com>2018-09-05 02:21:03 +0800
commit85debe77d9b616a37ecf0ed080045b3747b3aa7d (patch)
tree95ae6123afb0caf32ecb2405a54aa34635ee71ca /test/libsolidity/syntaxTests/controlFlow
parentc9f50b36aac0328d65fa4061e982ce26b997add6 (diff)
parent3d7b0d691f8b5f86cd81bd56f2a40508832e9a0e (diff)
downloaddexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar.gz
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar.bz2
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar.lz
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar.xz
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.tar.zst
dexon-solidity-85debe77d9b616a37ecf0ed080045b3747b3aa7d.zip
Merge pull request #4866 from bakaoh/issue4743
Fix#4743: Incorrect source location for nameless parameters
Diffstat (limited to 'test/libsolidity/syntaxTests/controlFlow')
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol2
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly_err.sol2
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/storageReturn/modifier_err.sol4
3 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol b/test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol
index 7e8c4501..52a8b3d7 100644
--- a/test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol
+++ b/test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol
@@ -2,4 +2,4 @@ contract C {
function f() internal pure returns (mapping(uint=>uint) storage) {}
}
// ----
-// TypeError: (53-72): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
+// TypeError: (53-80): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly_err.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly_err.sol
index 5fde497c..cad9b8e8 100644
--- a/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly_err.sol
+++ b/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly_err.sol
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
-// TypeError: (87-88): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
+// TypeError: (87-96): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/modifier_err.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/modifier_err.sol
index a0047782..42342979 100644
--- a/test/libsolidity/syntaxTests/controlFlow/storageReturn/modifier_err.sol
+++ b/test/libsolidity/syntaxTests/controlFlow/storageReturn/modifier_err.sol
@@ -18,5 +18,5 @@ contract C {
}
}
// ----
-// TypeError: (249-250): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
-// TypeError: (367-368): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
+// TypeError: (249-258): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.
+// TypeError: (367-376): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.