summary refs log tree commit diff stats
path: root/tests/array/troof2.nim
blob: e4b4f4b3c3018d28276f97b2579e12662fa134f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  errormsg: "invalid context for '^' as 'foo()' has side effects"
  line: "9"
"""
# XXX This needs to be fixed properly!
proc foo(): seq[int] {.sideEffect.} =
  echo "ha"

let f = foo()[^1]