Check that there is an interface type before querying validity of location.

This commit is contained in:
Kamil Śliwak
2021-02-24 11:22:40 +01:00
committed by chriseth
parent 58e0977647
commit e87cd0afdf
4 changed files with 25 additions and 2 deletions
@@ -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.
@@ -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.