twrongdefinetype.nim 160 B

1234567
  1. # issue #24539
  2. type Foo = object
  3. const foo {.define.} = Foo() #[tt.Error
  4. ^ unsupported type for constant 'foo' with .define pragma: Foo]#
  5. echo repr(foo)