-
-
Notifications
You must be signed in to change notification settings - Fork 669
Open
Labels
DruntimeSpecific to druntimeSpecific to druntime
Description
This code (extracted from a larger project):
module safety;
import core.sys.posix.stdio : printf;
import std.exception;
void main() @safe
{
try
{
throw new Exception("irrelevant");
}
catch (Exception e)
{
string s = e.toString();
}
}
Results in:
safety.d(14): Error: `@safe` function `D main` cannot call `@system` function `object.Throwable.toString`
/home/braddr/sandbox/dmd.2.109.1/linux/bin64/../../src/druntime/import/object.d(2652): `object.Throwable.toString` is declared here
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DruntimeSpecific to druntimeSpecific to druntime