Add experimental feature 'v0.5.0'

This commit is contained in:
Alex Beregszaszi 2017-09-12 00:21:54 +01:00
parent bc5306863d
commit 06c2ddfd50
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
### 0.4.17 (unreleased) ### 0.4.17 (unreleased)
Features: 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. * Code Generator: Added ``.selector`` member on external function types to retrieve their signature.
* Optimizer: Add new optimization step to remove unused ``JUMPDEST``s. * Optimizer: Add new optimization step to remove unused ``JUMPDEST``s.
* Type Checker: Display helpful warning for unused function arguments/return parameters. * Type Checker: Display helpful warning for unused function arguments/return parameters.

View File

@ -31,6 +31,7 @@ enum class ExperimentalFeature
{ {
SMTChecker, SMTChecker,
ABIEncoderV2, // new ABI encoder that makes use of JULIA ABIEncoderV2, // new ABI encoder that makes use of JULIA
V050, // v0.5.0 breaking changes
Test, Test,
TestOnlyAnalysis TestOnlyAnalysis
}; };
@ -45,6 +46,7 @@ static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames
{ {
{ "SMTChecker", ExperimentalFeature::SMTChecker }, { "SMTChecker", ExperimentalFeature::SMTChecker },
{ "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 }, { "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 },
{ "v0.5.0", ExperimentalFeature::V050 },
{ "__test", ExperimentalFeature::Test }, { "__test", ExperimentalFeature::Test },
{ "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis },
}; };