diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-03-29 22:00:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 22:00:18 +0200 |
commit | 2a278f6eba5b154920177154bb48733268cacfc5 (patch) | |
tree | 33f37c25c099714899a96ac712a3908c1fc26c6e /compiler/commands.nim | |
parent | 06f8c5cb6f04319fd6ca6eafc496f3da882ab341 (diff) | |
download | Nim-2a278f6eba5b154920177154bb48733268cacfc5.tar.gz |
'.push raises: []' now also affects proc types (#13776)
* '.push raises: []' now also affects proc types * fixes the regression * less disruptive bugfix * another attempt
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index bc6fdde8f..024e6b417 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -877,6 +877,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; # old behaviors go here: defineSymbol(conf.symbols, "nimOldRelativePathBehavior") ast.eqTypeFlags.excl {tfGcSafe, tfNoSideEffect} + conf.globalOptions.incl optNimV1Emulation else: localError(conf, info, "unknown Nim version; currently supported values are: {1.0}") of "benchmarkvm": |