Fix crash when FunctionType has undeclared type as parameter

This commit is contained in:
Leonardo Alt
2018-07-31 11:17:51 +02:00
parent bc13365a7b
commit 210fee571f
9 changed files with 38 additions and 12 deletions
@@ -1,11 +0,0 @@
contract test {
function f() public {
uintM something = 3;
intM should = 4;
bytesM fail = "now";
}
}
// ----
// DeclarationError: (50-55): Identifier not found or not unique.
// DeclarationError: (79-83): Identifier not found or not unique.
// DeclarationError: (104-110): Identifier not found or not unique.
@@ -0,0 +1,7 @@
contract test {
function f() public {
uintM something = 3;
}
}
// ----
// DeclarationError: (50-55): Identifier not found or not unique.
@@ -0,0 +1,7 @@
contract test {
function f() public {
intM should = 4;
}
}
// ----
// DeclarationError: (50-54): Identifier not found or not unique.
@@ -0,0 +1,7 @@
contract test {
function f() public {
bytesM fail = "now";
}
}
// ----
// DeclarationError: (50-56): Identifier not found or not unique.
@@ -0,0 +1,5 @@
contract C {
function a(function(Nested)) external pure {}
}
// ----
// DeclarationError: (37-43): Identifier not found or not unique.
@@ -0,0 +1,5 @@
contract C {
function a(function(Nested) external) external pure {}
}
// ----
// DeclarationError: (37-43): Identifier not found or not unique.
@@ -0,0 +1,5 @@
contract C {
function a(function(function(function(Nested)))) external pure {}
}
// ----
// DeclarationError: (55-61): Identifier not found or not unique.