Skip to content

Commit

Permalink
[druntime/object.d] add public imports for core.interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilsonator committed Dec 31, 2024
1 parent 9c4694f commit 2822bac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/test/fail_compilation/imphint.d
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ fail_compilation/imphint.d(102): Error: `startsWith` is not defined, perhaps `im
fail_compilation/imphint.d(103): Error: `take` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(104): Error: `text` is not defined, perhaps `import std.conv;` is needed?
fail_compilation/imphint.d(105): Error: `to` is not defined, perhaps `import std.conv;` is needed?
fail_compilation/imphint.d(107): Error: `InterpolationHeader` is not defined, perhaps `import core.interpolation;` ?
fail_compilation/imphint.d(108): Error: template `heresy` is not callable using argument types `!()(InterpolationHeader, InterpolationFooter)`
fail_compilation/imphint.d(107): Candidate is: `heresy(Args...)(InterpolationHeader header, Args args, InterpolationFooter footer)`
---
*/








void foo()
{
printf("hello world\n");
Expand Down
5 changes: 5 additions & 0 deletions druntime/src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -4721,6 +4721,11 @@ public import core.lifetime : _d_newclassT;
public import core.lifetime : _d_newclassTTrace;
public import core.lifetime : _d_newitemT;

public import core.interpolation : InterpolationHeader;
public import core.interpolation : InterpolationFooter;
public import core.interpolation : InterpolatedLiteral;
public import core.interpolation : InterpolatedExpression;

public @trusted @nogc nothrow pure extern (C) void _d_delThrowable(scope Throwable);

// Compare class and interface objects for ordering.
Expand Down

0 comments on commit 2822bac

Please sign in to comment.