mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix crash when FunctionType has undeclared type as parameter
This commit is contained in:
-11
@@ -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.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
contract test {
|
||||
function f() public {
|
||||
uintM something = 3;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (50-55): Identifier not found or not unique.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
contract test {
|
||||
function f() public {
|
||||
intM should = 4;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (50-54): Identifier not found or not unique.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
contract test {
|
||||
function f() public {
|
||||
bytesM fail = "now";
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (50-56): Identifier not found or not unique.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function a(function(Nested)) external pure {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (37-43): Identifier not found or not unique.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function a(function(Nested) external) external pure {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (37-43): Identifier not found or not unique.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function a(function(function(function(Nested)))) external pure {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (55-61): Identifier not found or not unique.
|
||||
Reference in New Issue
Block a user