Skip to content

Commit dcb1dc1

Browse files
committed
tests
1 parent 97b430b commit dcb1dc1

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed
Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
1-
import { Exception } from "./Types.js";
1+
import { class_type, TypeInfo } from "./fable_modules/fable-library-ts.5.0.0-alpha.2/Reflection.js";
22

3-
export class SystemException extends Exception {
3+
export class SystemException extends Error {
4+
constructor() {
5+
super();
6+
}
7+
}
8+
9+
export function SystemException_$reflection(): TypeInfo {
10+
return class_type("System.SystemException", undefined, SystemException, class_type("System.Exception"));
11+
}
12+
13+
export function SystemException_$ctor(): SystemException {
14+
return new SystemException();
415
}
516

617
export class TimeoutException extends SystemException {
18+
constructor() {
19+
super();
20+
}
721
}
22+
23+
export function TimeoutException_$reflection(): TypeInfo {
24+
return class_type("System.TimeoutException", undefined, TimeoutException, SystemException_$reflection());
25+
}
26+
27+
export function TimeoutException_$ctor(): TimeoutException {
28+
return new TimeoutException();
29+
}
30+

0 commit comments

Comments
 (0)