From 9d060d918bdabd30c51e0c2efa85ef78b5e8be8a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 12 Aug 2004 01:04:59 +0000 Subject: check lvalue validity --- perl_checker.src/test/various_errors.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl_checker.src/test/various_errors.t') diff --git a/perl_checker.src/test/various_errors.t b/perl_checker.src/test/various_errors.t index 535034b..af21eb4 100644 --- a/perl_checker.src/test/various_errors.t +++ b/perl_checker.src/test/various_errors.t @@ -12,9 +12,12 @@ if ($xxx = '') {} are you sure you did not mean "==" inst N("xxx$yyy") don't use interpolated translated string, use %s or %d instead +if ($xxx && $yyy = xxx()) {} invalid lvalue + 1 + 2 >> 3 missing parentheses (needed for clarity) $xxx ? $yyy = 1 : $zzz = 2; missing parentheses (needed for clarity) + invalid lvalue N_("xxx") . 'yyy' N_("xxx") . "yyy" is dumb since the string "xxx" will never get translated -- cgit v1.2.1