forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface-errors.ts.fixture.ts
29 lines (29 loc) · 1.1 KB
/
interface-errors.ts.fixture.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
abstract;
interface Foo {
}
abstract;
interface Foo {
}
interface Foo {
}
interface Foo extends Bar {
}
interface Foo {
a: i32;
b: i32;
c: i32;
c: i32;
d: i32;
constructor(): i32;
constructor();
}
// ERROR 1242: "'abstract' modifier can only appear on a class, method, or property declaration." in interface-errors.ts(1,1+8)
// ERROR 1176: "Interface declaration cannot have 'implements' clause." in interface-errors.ts(8,15+10)
// ERROR 1042: "'abstract' modifier cannot be used here." in interface-errors.ts(15,3+8)
// ERROR 1042: "'private' modifier cannot be used here." in interface-errors.ts(16,3+7)
// ERROR 1042: "'protected' modifier cannot be used here." in interface-errors.ts(17,3+9)
// ERROR 1042: "'public' modifier cannot be used here." in interface-errors.ts(18,3+6)
// ERROR 1042: "'static' modifier cannot be used here." in interface-errors.ts(19,3+6)
// ERROR 230: "'constructor' keyword cannot be used here." in interface-errors.ts(20,3+11)
// ERROR 230: "'constructor' keyword cannot be used here." in interface-errors.ts(21,3+11)
// ERROR 1110: "Type expected." in interface-errors.ts(21,16+0)