Fix subtype conversion w/ varargs arguments (#10402)

The type matching is done on the `T` of the `varargs[T]` so the
conversion must be performed to `T` and not to the whole type.

This problem is only noticeable with the cpp backend since C doesn't
give a damn shit about your fucking (wrong) types.

Fixes #9845
This commit is contained in:
LemonBoy 2019-01-21 19:12:17 +01:00 • committed by Miran
commit ee89ba6bdb
5 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,5 @@
discard """
targets: "c cpp"
output: "OK"
"""

View file

@ -1,4 +1,5 @@
discard """
targets: "c cpp"
outputsub: '''ObjectAssignmentError'''
exitcode: "1"
"""

View file

@ -1,4 +1,5 @@
discard """
targets: "c cpp"
outputsub: '''ObjectAssignmentError'''
exitcode: "1"
"""

View file

@ -1,4 +1,5 @@
discard """
targets: "c cpp"
outputsub: '''ObjectAssignmentError'''
exitcode: "1"
"""