mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
abstract abstract contract A { constructor() public {} }
|
||||
// ----
|
||||
// ParserError: (9-17): Contract expected.
|
||||
@@ -0,0 +1,7 @@
|
||||
interface A {
|
||||
function utterance() external returns (bytes32);
|
||||
}
|
||||
contract B is A {
|
||||
}
|
||||
// ----
|
||||
// TypeError: (69-88): Contract "B" should be marked as abstract.
|
||||
@@ -1,3 +1,3 @@
|
||||
abstract interface A { }
|
||||
// ----
|
||||
// ParserError: (0-8): Only contracts can be abstract.
|
||||
// TypeError: (0-24): Only contracts can be abstract.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
abstract library A { }
|
||||
// ----
|
||||
// ParserError: (0-8): Only contracts can be abstract.
|
||||
// TypeError: (0-22): Only contracts can be abstract.
|
||||
|
||||
Reference in New Issue
Block a user