Error: non-shared method Node.~this is not callable using a shared object

ChangLong changlon at gmail.com
Sat Jan 6 11:23:13 UTC 2018


This code is not working.
-----------------------
shared struct Stack {
         Node n = void ;
}
struct Node {
         ~this() {}
}
-----------------------
Error: non-shared method test.Node.~this is not callable using a 
shared object

Is this a bug ?  Node.~this is not called from Stack.


More information about the Digitalmars-d-learn mailing list