aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-11 23:46:06 +0800
committerGitHub <noreply@github.com>2016-12-11 23:46:06 +0800
commitd2b8bdd0163ba097e86bbce8d9770256bcda7a3b (patch)
tree823b740b0917f32640d5c3a79a1e75c631089464 /libsolidity/ast
parent4508f713247359b8f9cba4867c7c77c64a001807 (diff)
parent05139500fb44c1ff574756b3a5d10d46674c236d (diff)
downloaddexon-solidity-d2b8bdd0163ba097e86bbce8d9770256bcda7a3b.tar.gz
dexon-solidity-d2b8bdd0163ba097e86bbce8d9770256bcda7a3b.tar.zst
dexon-solidity-d2b8bdd0163ba097e86bbce8d9770256bcda7a3b.zip
Merge pull request #1464 from federicobond/warn-msgvalue
Warn about using msg.value in non-payable function
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.h b/libsolidity/ast/Types.h
index 72640a1c..26e2b8f2 100644
--- a/libsolidity/ast/Types.h
+++ b/libsolidity/ast/Types.h
@@ -1117,6 +1117,8 @@ public:
virtual std::string toString(bool _short) const override;
+ Kind kind() const { return m_kind; }
+
private:
Kind m_kind;
};