Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.

This provides a transition from the non-promoting behavior
of unary + - ~ to the C-like integral promotion behavior.

Parameters:

Scope* sc

context

UnaExp ue

NegExp, UAddExp, or ComExp which is revised per rules

References:

https:
//issues.dlang.org/show_bug.cgi?id=16997

bool arrayTypeCompatible(Loc loc, Type t1, Type t2);

See if both types are arrays that can be compared
for equality. Return true if so.
If they are arrays, but incompatible, issue error.
This is to enable comparing things like an immutable
array with a mutable one.

bool arrayTypeCompatibleWithoutCasting(Loc loc, Type t1, Type t2);

See if both types are arrays that can be compared
for equality without any casting. Return true if so.
This is to enable comparing things like an immutable
array with a mutable one.