summary refs log tree commit diff stats
path: root/tests/stylecheck/tforeign_package.nim
blob: 8594ad802e3dd0dbb2578532da69306ab821af49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  matrix: "--errorMax:0 --styleCheck:error"
  action: compile
"""

import foreign_package/foreign_package

# This call tests that:
#   - an instantiation of a generic in a foreign package doesn't raise errors
#     when the generic body contains:
#     - definition and usage violations
#     - builtin pragma usage violations
#     - user pragma usage violations
#   - definition violations in foreign packages are ignored
#   - usage violations in foreign packages are ignored
genericProc[int]()