diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 2dcee1420..3b9cba835 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -851,7 +851,8 @@ proc semObjectNode(c: PContext, n: PNode, prev: PType; isInheritable: bool): PTy else: if concreteBase.kind != tyError: localError(c.config, n[1].info, "inheritance only works with non-final objects; " & - "to enable inheritance write '" & typeToString(realBase) & " of RootObj'") + "for " & typeToString(realBase) & " to be inheritable it must be " & + "'object of RootObj' instead of 'object'") base = nil realBase = nil if n.kind != nkObjectTy: internalError(c.config, n.info, "semObjectNode") |