diff --git a/compiler/test/runnable/imports/test23722b.d b/compiler/test/runnable/imports/test23722b.d index 771b875768d..1c77bc68453 100644 --- a/compiler/test/runnable/imports/test23722b.d +++ b/compiler/test/runnable/imports/test23722b.d @@ -1,14 +1,6 @@ -struct A { - import core.stdc.stdio; - alias x = () { - printf("x\n"); - }; - alias y = () { - printf("y\n"); - }; +auto f(string s, alias g)() { + return true; } -// do_x should call A.x (and print "x") -void do_x() { - A.x(); -} +alias a = f!("a", output => output); +alias b = f!("b", output => true); diff --git a/compiler/test/runnable/test23722.d b/compiler/test/runnable/test23722.d index 0f5b97f4f4a..2904a956562 100644 --- a/compiler/test/runnable/test23722.d +++ b/compiler/test/runnable/test23722.d @@ -5,12 +5,8 @@ // Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code import imports.test23722b; -// do_y should call A.y (and print "y") -void do_y() { - A.y(); +bool f() { + return b; } -extern (C) void main() { - do_y(); // should print y - do_x(); // should print x -} +void main() {}