Skip to content

Unclear error message, lowest priority #13256

@StefanSalewski

Description

@StefanSalewski

Example

type
  O = object
  O2 = object of O

Current Output

Error: inheritance only works with non-final objects; to enable inheritance write 'O of RootObj'

Expected Output

write '... = object of RootObj'

Possible Solution

  • fix it
  • let someone fix it
  • ignore it

Additional Information

  • old bug, have seen it long time ago already; may confuse newcomers
$ nim -v
Nim Compiler Version 1.1.1 [Linux: amd64]
Compiled at 2020-01-20
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 41555ca86f70771d71e2385629e76db092f0eabb
active boot switches: -d:release

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions