mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11116 from blishko/issue-10985
[SMTChecker] Handle InaccessibleDynamicType
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
struct S {
|
||||
string a;
|
||||
uint256 y;
|
||||
}
|
||||
S public s;
|
||||
function g() public view returns (uint256) {
|
||||
this.s();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: <=spuriousDragon
|
||||
// ----
|
||||
// Warning 6321: (133-140): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
|
||||
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
function f() public returns(bool[]memory) {
|
||||
this.f();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: <=spuriousDragon
|
||||
// ----
|
||||
// Warning 6321: (74-86): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
|
||||
@@ -0,0 +1,14 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
struct S {
|
||||
string a;
|
||||
}
|
||||
S public s;
|
||||
function g() public view returns (uint256) {
|
||||
this.s();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: <=spuriousDragon
|
||||
// ----
|
||||
// Warning 6321: (120-127): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
|
||||
@@ -0,0 +1,11 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
string public s;
|
||||
function g() public view returns (uint256) {
|
||||
this.s();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: <=spuriousDragon
|
||||
// ----
|
||||
// Warning 6321: (98-105): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
|
||||
Reference in New Issue
Block a user