diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-30 22:43:50 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-31 17:17:51 +0800 |
commit | 210fee571fb786751763e731f6fb107891e13383 (patch) | |
tree | e3d8f0c078bdebd6c5932a003cf3ba822c87239e /test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol | |
parent | bc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2 (diff) | |
download | dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.gz dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.bz2 dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.lz dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.xz dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.zst dexon-solidity-210fee571fb786751763e731f6fb107891e13383.zip |
Fix crash when FunctionType has undeclared type as parameter
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol new file mode 100644 index 00000000..962f4fe4 --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/570_function_type_undeclared_type.sol @@ -0,0 +1,5 @@ +contract C { + function a(function(Nested)) external pure {} +} +// ---- +// DeclarationError: (37-43): Identifier not found or not unique. |