aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/function_type.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/indexing/function_type.sol')
-rw-r--r--test/libsolidity/syntaxTests/indexing/function_type.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/indexing/function_type.sol b/test/libsolidity/syntaxTests/indexing/function_type.sol
new file mode 100644
index 00000000..6c6c06a9
--- /dev/null
+++ b/test/libsolidity/syntaxTests/indexing/function_type.sol
@@ -0,0 +1,7 @@
+contract C {
+ function f() public {
+ f[0];
+ }
+}
+// ----
+// TypeError: (41-42): Indexed expression has to be a type, mapping or array (is function ())