mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE when function type struct parameter has field of non-existent type
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
library L
|
||||
{
|
||||
struct Nested
|
||||
{
|
||||
uint y;
|
||||
}
|
||||
function f(function(Nested memory) external) external pure {}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
library L
|
||||
{
|
||||
struct Nested
|
||||
{
|
||||
Non y;
|
||||
}
|
||||
function f(function(Nested memory) external) external pure {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (32-35): Identifier not found or not unique.
|
||||
// TypeError: (63-76): Internal type cannot be used for external function type.
|
||||
Reference in New Issue
Block a user