mbox series

[0/2] improve type info in error messages

Message ID 20190120001350.19987-1-luc.vanoostenryck@gmail.com (mailing list archive)
Headers show
Series improve type info in error messages | expand

Message

Luc Van Oostenryck Jan. 20, 2019, 12:13 a.m. UTC
Error/warning messages about type problems don't always
display the concerned type(s) and those which do, don't
dis)lay the type(s) consistently.

This series improve both cases.

Luc Van Oostenryck (2):
  display extra info for type errors in compare & conditional
  more consistent type info in error messages

 evaluate.c                       | 28 ++++++++++++++++------------
 validation/bad-type-twice0.c     |  4 ++--
 validation/bad-type-twice1.c     |  6 +++---
 validation/compare-null-to-int.c |  6 +++---
 validation/cond-err-expand.c     |  8 ++++++--
 validation/cond_expr.c           |  4 ++--
 validation/conditional-type.c    | 32 ++++++++++++++++----------------
 validation/enum-mismatch.c       |  6 +++---
 8 files changed, 51 insertions(+), 43 deletions(-)