Skip to content

fixes #16754#25519

Draft
demotomohiro wants to merge 1 commit intonim-lang:develfrom
demotomohiro:fixes-16754
Draft

fixes #16754#25519
demotomohiro wants to merge 1 commit intonim-lang:develfrom
demotomohiro:fixes-16754

Conversation

@demotomohiro
Copy link
Contributor

This PR allows passing the defining type to generic types in the right side in a type definition like this:

type
  Foo = object
    x: Option[Foo]

I think generic types should be instanciated after all given arguments are semchecked,
because generic types can access information about them.
(for example, Option[T] in std/option checks if T is a pointer like type)
But in this case, need to instanciate Option[Foo] before type of Foo.x is determined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant