mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow `using for` directive for interfaces.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
library L {
|
||||
function f() public {}
|
||||
}
|
||||
|
||||
interface I {
|
||||
using L for int;
|
||||
function g() external;
|
||||
}
|
||||
// ----
|
||||
// TypeError 9088: (60-76): The "using for" directive is not allowed inside interfaces.
|
||||
Reference in New Issue
Block a user