[Issue 15974] Spurious error: argument to mixin must be a string, not (expression()) of type string
https://issues.dlang.org/show_bug.cgi?id=15974 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ceff80f4df0d65e7e5023278420418d5e975f44b fix Issue 15974 - Spurious error: argument to mixin must be a string, not (expression()) of type string https://github.com/dlang/dmd/commit/7085fca5112bbfa018b15739e4b5c624d4ac4771 Merge pull request #5753 from 9rnsr/fix15974 --
[Issue 15974] Spurious error: argument to mixin must be a string, not (expression()) of type string
https://issues.dlang.org/show_bug.cgi?id=15974 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ceff80f4df0d65e7e5023278420418d5e975f44b fix Issue 15974 - Spurious error: argument to mixin must be a string, not (expression()) of type string https://github.com/dlang/dmd/commit/7085fca5112bbfa018b15739e4b5c624d4ac4771 Merge pull request #5753 from 9rnsr/fix15974 Issue 15974 - Spurious error: argument to mixin must be a string, not (expression()) of type string --
[Issue 15974] Spurious error: argument to mixin must be a string, not (expression()) of type string
https://issues.dlang.org/show_bug.cgi?id=15974 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 15974] Spurious error: argument to mixin must be a string, not (expression()) of type string
https://issues.dlang.org/show_bug.cgi?id=15974 Kenji Hara changed: What|Removed |Added Keywords||diagnostic, pull Hardware|x86 |All OS|Mac OS X|All --- Comment #2 from Kenji Hara --- https://github.com/dlang/dmd/pull/5753 --
[Issue 15974] Spurious error: argument to mixin must be a string, not (expression()) of type string
https://issues.dlang.org/show_bug.cgi?id=15974 --- Comment #1 from Kenji Hara --- I got a real minimized test case from incomplete sample code. // test.d string format(Args...)(string fmt, Args args) { return ""; } void loadDeviceFns() { enum allFns = ["vkCreateSampler"]; foreach (f;allFns) { mixin("%s".format(f)); } } $ dmd -o- test test.d(11): Error: variable f cannot be read at compile time test.d(11):called from here: format("%s", f) test.d(11): Error: argument to mixin must be a string, not (format("%s", f)) of type string --