blob: 0ba6c69cdbfb7a965d84c95b140cd5504492d113 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
type C;
const c:int extends a;
const d:int extends a complete;
const e:int extends unique a, b;
const f:int extends complete;
const a:int;
const b:int;
const g:int extends x; // error: undeclared parent
const c0:C;
const c1:C extends c0, c0; // error: parent mentioned twice
const c2:C extends c2; // error: constant as its own parent
const h:int extends y; // error: variable cannot be parent
var y:int;
|