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:
6
tests_errors/lvalue-2.ispc
Normal file
6
tests_errors/lvalue-2.ispc
Normal file
@@ -0,0 +1,6 @@
|
||||
// Can't assign to type "const uniform int32" on left-hand side
|
||||
|
||||
int bar(){
|
||||
4 = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user