Skip to content

Spec for implicit conversions is wrong for noreturn and incomplete for void array/pointer #4264

@ntrel

Description

@ntrel

https://dlang.org/spec/type.html#implicit-conversions

All types implicitly convert to noreturn

This is backwards (oops).

  • An array with non-mutable elements will implicitly convert to const(void)[], but not void[].
  • An array with shared elements will implicitly convert to shared(void)[], but not void[].

Ditto for pointers.

PR incoming.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions