mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix bad cast in base constructor modifier.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C { constructor(uint) public {} }
|
||||
contract A is C { constructor() C(2) public {} }
|
||||
// ----
|
||||
// Warning: (45-72): Assertion checker does not yet support constructors.
|
||||
// Warning: (93-121): Assertion checker does not yet support constructors.
|
||||
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C { constructor(uint) public {} }
|
||||
contract A is C { constructor() C(2) public {} }
|
||||
contract B is C { constructor() C(3) public {} }
|
||||
contract J is C { constructor() C(3) public {} }
|
||||
// ----
|
||||
// Warning: (45-72): Assertion checker does not yet support constructors.
|
||||
// Warning: (93-121): Assertion checker does not yet support constructors.
|
||||
// Warning: (142-170): Assertion checker does not yet support constructors.
|
||||
// Warning: (191-219): Assertion checker does not yet support constructors.
|
||||
Reference in New Issue
Block a user