mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make visibility optional, but it has to be consistent.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
abstract contract C {
|
||||
constructor() {}
|
||||
}
|
||||
contract D {
|
||||
function f() public { C c = new C(); c; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 4614: (84-89): Cannot instantiate an abstract contract.
|
||||
Reference in New Issue
Block a user