Skip to content

Commit f5ca0b9

Browse files
committed
show error for static dtor too
1 parent cfaeb7d commit f5ca0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/class.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ class Foo
926926
class Foo
927927
{
928928
static ~this() { ... } // a static destructor
929-
static private ~this() { ... } // not a static destructor
929+
static private ~this() { ... } // Error: not a static destructor
930930
static
931931
{
932932
~this() { ... } // not a static destructor

0 commit comments

Comments
 (0)