Check that expressions within assignment patterns are evaluated as if they were assigned to a variable with the same type as the base type of the assignment pattern target. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>