minclude_import.nim 399 B

12345678910111213141516
  1. # Creates an awkward set of dependencies between this, import, and include.
  2. # This pattern appears in the compiler, compiler/(sem|ast|semexprs).nim.
  3. import mfakeassert
  4. import minclude_types
  5. proc say*(g: Greet): string =
  6. fakeAssert(true, "always works")
  7. g.greeting & ", " & g.subject & "!"
  8. include minclude_include
  9. proc say*(): string =
  10. fakeAssert(1 + 1 == 2, "math works")
  11. say(create())