mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check that there is an interface type before querying validity of location.
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
pragma abicoder v2;
|
||||
|
||||
contract C {
|
||||
struct S { function() internal a; }
|
||||
function f(S[2] memory) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (89-100): Internal type is not allowed for public or external functions.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
pragma abicoder v2;
|
||||
|
||||
contract C {
|
||||
struct S { function() internal[2] a; }
|
||||
function f(S memory) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (92-100): Internal type is not allowed for public or external functions.
|
||||
Reference in New Issue
Block a user