Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test8675.d

raw
1 class MyError : Error
2 {
3 this(string msg)
4 {
5 super(msg);
6 }
7 }
8
9 void foo() nothrow
10 {
11 throw new Error("Some error");
12 }
13
14 void bar() nothrow
15 {
16 throw new MyError("Some error");
17 }