diff --git a/std_shims/objects.nim b/std_shims/objects.nim index 470f354..c3dadc0 100644 --- a/std_shims/objects.nim +++ b/std_shims/objects.nim @@ -14,3 +14,6 @@ template init*(lvalue: var auto, a1, a2, a3: auto) = mixin init lvalue = init(type(lvalue), a1, a2, a3) +when not declared(default): + proc default*(T: type): T = discard +