aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-08 22:55:41 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-08 22:59:24 +0800
commit3c791d637d6bdf709ec272e6c8cf9ff51abd34ef (patch)
treea2464e62ca686131e732bf04fbc2fed81c94cb38 /test/libsolidity/syntaxTests/inlineAssembly
parent863778fe3614f8387723572693f276f66321fd74 (diff)
downloaddexon-solidity-3c791d637d6bdf709ec272e6c8cf9ff51abd34ef.tar.gz
dexon-solidity-3c791d637d6bdf709ec272e6c8cf9ff51abd34ef.tar.zst
dexon-solidity-3c791d637d6bdf709ec272e6c8cf9ff51abd34ef.zip
Provide nicer error message when referencing overloaded references
Diffstat (limited to 'test/libsolidity/syntaxTests/inlineAssembly')
-rw-r--r--test/libsolidity/syntaxTests/inlineAssembly/overloaded_reference.sol11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/inlineAssembly/overloaded_reference.sol b/test/libsolidity/syntaxTests/inlineAssembly/overloaded_reference.sol
new file mode 100644
index 00000000..d1bcc946
--- /dev/null
+++ b/test/libsolidity/syntaxTests/inlineAssembly/overloaded_reference.sol
@@ -0,0 +1,11 @@
+contract C {
+ function f() pure public {}
+ function f(address) pure public {}
+ function g() pure public {
+ assembly {
+ let x := f
+ }
+ }
+}
+// ----
+// DeclarationError: (155-156): Multiple matching identifiers. Resolving overloaded identifiers is not supported.