Ensure that non-shared_ptr, non-boxed_value, non-reference return types
are treated as const.
This commit is contained in:
2
unittests/assign_const.chai
Normal file
2
unittests/assign_const.chai
Normal file
@@ -0,0 +1,2 @@
|
||||
assert_throws("Mismatched types in equation, lhs is const.", fun() { 1 = 2 } );
|
||||
assert_throws("Mismatched types in equation, lhs is const.", fun() { 1 + 2 = 2 } );
|
Reference in New Issue
Block a user