Do assignment lvalue error checking in type checking
Added some tests related to this. Also improved source file position reporting in error reporting.
This commit is contained in:
7
tests_errors/lvalue-3.ispc
Normal file
7
tests_errors/lvalue-3.ispc
Normal file
@@ -0,0 +1,7 @@
|
||||
// Left hand side of assignment statement can't be assigned to
|
||||
|
||||
int bar(){
|
||||
int x;
|
||||
4 = x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user