summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/const_assignment_from_another_constant_illegal_type.e
blob: f63b4d4ee30bd0920c720674a1e04951c18158c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * assign a constant to another constant of wrong type
 */

module const_assignment_from_another_constant_illegal_type;

const
	N : integer = 20;
	B : boolean = false;
	M : integer = B; // this should be an error, as the types don't match
	
begin
end