mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjust tests for multiple errors with the var keyword
This commit is contained in:
1 parent
3ddbf1617f
commit
573aa01fd2
2 files changed
+25
-13
No files matched your search
@@ -136,10 +136,12 @@ BOOST_AUTO_TEST_CASE(environment_access)
|
||||
}
|
||||
for (string const& x: pure)
|
||||
{
|
||||
CHECK_WARNING(
|
||||
CHECK_WARNING_ALLOW_MULTI(
|
||||
"contract C { function f() view public { var x = " + x + "; x; } }",
|
||||
"restricted to pure"
|
||||
);
|
||||
(std::vector<std::string>{
|
||||
"Function state mutability can be restricted to pure",
|
||||
"Use of the \"var\" keyword is deprecated."
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user