summary refs log tree commit diff stats
path: root/nimsuggest/tests/fixtures/minclude_import.nim
blob: 5fa9e51426e9dd340c32950086cddfd2eb95375d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Creates an awkward set of dependencies between this, import, and include.
# This pattern appears in the compiler, compiler/(sem|ast|semexprs).nim.

import mfakeassert
import minclude_types

proc say*(g: Greet): string =
  fakeAssert(true, "always works")
  g.greeting & ", " & g.subject & "!"

include minclude_include

proc say*(): string =
  fakeAssert(1 + 1 == 2, "math works")
  say(create())