nimpretty: fixes #9505 [bugfix]
This commit is contained in:
parent
790bc5b07b
commit
667af87e66
3 changed files with 57 additions and 1 deletions
24
nimpretty/tests/expected/wrong_ind.nim
Normal file
24
nimpretty/tests/expected/wrong_ind.nim
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
# bug #9505
|
||||
|
||||
import std/[
|
||||
strutils, ospaths, os
|
||||
]
|
||||
import pkg/[
|
||||
regex
|
||||
]
|
||||
|
||||
proc fun() =
|
||||
let a = [
|
||||
1,
|
||||
2,
|
||||
]
|
||||
discard
|
||||
|
||||
proc funB() =
|
||||
let a = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
discard
|
||||
24
nimpretty/tests/wrong_ind.nim
Normal file
24
nimpretty/tests/wrong_ind.nim
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
# bug #9505
|
||||
|
||||
import std/[
|
||||
strutils, ospaths, os
|
||||
]
|
||||
import pkg/[
|
||||
regex
|
||||
]
|
||||
|
||||
proc fun() =
|
||||
let a = [
|
||||
1,
|
||||
2,
|
||||
]
|
||||
discard
|
||||
|
||||
proc funB() =
|
||||
let a = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
discard
|
||||
Loading…
Add table
Add a link
Reference in a new issue