mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SE-0157: Add a frontend flag -enable-recursive-constraints.
Introduce `-enable-recursive-constraints` to disable the error about direct recursion within a protocol definition. The implementation of recursive protocol constraints is incomplete, but might be useful for experimentation.
This commit is contained in:
@@ -1007,6 +1007,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
Opts.EnableASTScopeLookup |= Args.hasArg(OPT_enable_astscope_lookup);
|
||||
Opts.EnableRecursiveConstraints |=
|
||||
Args.hasArg(OPT_enable_recursive_constraints);
|
||||
Opts.DebugConstraintSolver |= Args.hasArg(OPT_debug_constraints);
|
||||
Opts.EnableConstraintPropagation |= Args.hasArg(OPT_propagate_constraints);
|
||||
Opts.IterativeTypeChecker |= Args.hasArg(OPT_iterative_type_checker);
|
||||
|
||||
Reference in New Issue
Block a user