Make sure "value" error hint is only displayed in the right context

Before, the hint would be shown for any "value" member, even a user-specified one.
This commit is contained in:
Mathias Baumann
2019-02-18 16:29:57 +01:00
parent d32670760c
commit 093b9ced97
11 changed files with 32 additions and 21 deletions
@@ -471,7 +471,7 @@ BOOST_AUTO_TEST_CASE(address_staticcall_value)
}
}
)";
CHECK_ERROR(sourceCode, TypeError, "Member \"value\" not found or not visible after argument-dependent lookup");
CHECK_ERROR(sourceCode, TypeError, "Member \"value\" is only available for payable functions.");
}
}