Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
struct Test(T) { private: T _val; public: this(T obj) { } @property inout(T) Get() inout { return this._val; } alias Get this; } mixin template TRef(T) { private: Test!(T) _ref; void InitRef() { this._ref = Test!(T)(this); } public: @property inout(Test!(T)) Get() inout { return this._ref; } } class Foo { public: mixin TRef!(Foo); this() { InitRef(); } void echo() const pure nothrow { writeln("Foo"); } alias Get this; } void main() { }
Result:
Compilation error
/
Return code: 11 (Segmentation fault)
/
Compilation time:
0.162
seconds
Username
Message
Add comment
Paste info
Author:
Namespace
Views:
161
Private:
no
Expires:
Never
Uploaded:
24.06.12 19:01
Votes
:
0
Tweet
Compilation
Compiler:
DMD 2.062
Pointer size:
m64
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason