aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-09 00:55:10 +0800
committerGitHub <noreply@github.com>2018-08-09 00:55:10 +0800
commitbb071f307555cba6990eb4ee51c952ff2c0479e5 (patch)
tree31162bb0b171a6505b0fa60d76ba5e307e22693e /test/libsolidity
parent90627040545f0257b01cc24f95edea1c89cdbbf3 (diff)
parent3c791d637d6bdf709ec272e6c8cf9ff51abd34ef (diff)
downloaddexon-solidity-bb071f307555cba6990eb4ee51c952ff2c0479e5.tar.gz
dexon-solidity-bb071f307555cba6990eb4ee51c952ff2c0479e5.tar.zst
dexon-solidity-bb071f307555cba6990eb4ee51c952ff2c0479e5.zip
Merge pull request #4769 from ethereum/inlineasm-overloading-resolution
Provide nicer error message when referencing overloaded references
Diffstat (limited to 'test/libsolidity')
-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.