summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/const_assignment_from_unknown_constant.e
blob: 21aa5d2c1fef6de062893e66c366a9b7d8c104e8 (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;

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