Merge pull request #8875 from awr1/experimentalize-reorder

Experimentalize reorder (Changes {.reorder: on.} to {.experimental: "codeReordering".})
This commit is contained in:
Andreas Rumpf 2018-09-15 00:36:57 +02:00 • committed by GitHub
commit 5fa4fa185b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 10 deletions

View file

@ -2,7 +2,8 @@ discard """
disabled: true
"""
{. noforward: on .}
# {. noforward: on .}
{.experimental: "codeReordering".}
proc foo(x: int) =
bar x

View file

@ -6,8 +6,7 @@ defined
3'''
"""
{.reorder: on.}
{.experimental.}
{.experimental: "codeReordering".}
proc bar(x: T)

View file

@ -6,7 +6,8 @@ output:'''0
"""
import macros
{.reorder: on .}
# {.reorder: on .}
{.experimental: "codeReordering".}
echo foo(-1)
echo callWithFoo(0)
@ -71,4 +72,4 @@ macro make(arg: untyped): untyped =
proc first(i: int): void =
make(second)
var ss {.compileTime.}: string = ""
var ss {.compileTime.}: string = ""