Fix ICE when function type struct parameter has field of non-existent type

This commit is contained in:
Leonardo Alt
2018-11-29 10:38:47 +01:00
parent b4086ac870
commit 1d47919c0c
4 changed files with 27 additions and 1 deletions
@@ -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.