Created
March 14, 2021 09:01
-
-
Save run-dlang/b8eb31340c90c128a12b31a7c7e18804 to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io. Run with '-unittest'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Foo | |
{ | |
@system ~this() {} | |
} | |
@safe: | |
struct Bar | |
{ | |
Foo f; | |
~this() @trusted {} | |
} | |
@safe: | |
void main() | |
{ | |
Bar b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment