1 /// Test diagnostics for abstract members. 2 module nxt.abstract_members; 3 4 enum Rel { subkindOf, partOf } 5 6 class Edge 7 { 8 @safe pure: 9 abstract Rel rel() const nothrow @nogc; 10 } 11 12 class SubkindOf : Edge 13 { 14 @safe pure: 15 } 16 17 @safe pure nothrow unittest 18 { 19 auto subkindOf = new SubkindOf(); 20 }