mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Compile Time Values] Add syntactic verification of valid expressions in '@const' contexts
Syntactically verify that initializer expressions of '@const' variables and argument expressions to '@const' parameters consist strictly of syntactically-verifiable set of basic values and operations
This commit is contained in:
@@ -408,6 +408,10 @@ static bool usesFeatureCompileTimeValues(Decl *decl) {
|
||||
decl->getAttrs().hasAttribute<ConstInitializedAttr>();
|
||||
}
|
||||
|
||||
static bool usesFeatureCompileTimeValuesPreview(Decl *decl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool usesFeatureClosureBodyMacro(Decl *decl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user