From 2822bac9b773909786a444c7d196329df2eabf04 Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Tue, 31 Dec 2024 12:41:33 +0800 Subject: [PATCH] [druntime/object.d] add public imports for `core.interpolation` --- compiler/test/fail_compilation/imphint.d | 6 +++--- druntime/src/object.d | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/compiler/test/fail_compilation/imphint.d b/compiler/test/fail_compilation/imphint.d index 7ca81f47aa5d..6b1a290493ab 100644 --- a/compiler/test/fail_compilation/imphint.d +++ b/compiler/test/fail_compilation/imphint.d @@ -45,9 +45,6 @@ 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)` --- */ @@ -55,6 +52,9 @@ fail_compilation/imphint.d(107): Candidate is: `heresy(Args...)(Interpola + + + void foo() { printf("hello world\n"); diff --git a/druntime/src/object.d b/druntime/src/object.d index 565f6a1b15c6..3d852399e778 100644 --- a/druntime/src/object.d +++ b/druntime/src/object.d @@ -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.