From 06c2ddfd5017b310f5de732a0132491d236f8359 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 12 Sep 2017 00:21:54 +0100 Subject: [PATCH] Add experimental feature 'v0.5.0' --- Changelog.md | 1 + libsolidity/ast/ExperimentalFeatures.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Changelog.md b/Changelog.md index d5f27e539..d0d4d8dfa 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ ### 0.4.17 (unreleased) Features: + * Support ``pragma experimental v0.5.0;`` to turn on upcoming breaking changes. * Code Generator: Added ``.selector`` member on external function types to retrieve their signature. * Optimizer: Add new optimization step to remove unused ``JUMPDEST``s. * Type Checker: Display helpful warning for unused function arguments/return parameters. diff --git a/libsolidity/ast/ExperimentalFeatures.h b/libsolidity/ast/ExperimentalFeatures.h index 2c0896712..3ecfac7bf 100644 --- a/libsolidity/ast/ExperimentalFeatures.h +++ b/libsolidity/ast/ExperimentalFeatures.h @@ -31,6 +31,7 @@ enum class ExperimentalFeature { SMTChecker, ABIEncoderV2, // new ABI encoder that makes use of JULIA + V050, // v0.5.0 breaking changes Test, TestOnlyAnalysis }; @@ -45,6 +46,7 @@ static const std::map ExperimentalFeatureNames { { "SMTChecker", ExperimentalFeature::SMTChecker }, { "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 }, + { "v0.5.0", ExperimentalFeature::V050 }, { "__test", ExperimentalFeature::Test }, { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, };