Bug 20306 – incomplete mixin type with a lambda

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-18T16:21:43Z
Last change time
2020-03-21T03:56:41Z
Assigned to
No Owner
Creator
Adam D. Ruppe

Comments

Comment #0 by destructionator — 2019-10-18T16:21:43Z
void test(a...)() {} void main() { test!(a => 0); test!(mixin("a => 0")); } Notice the first one working, but then mixin the same code fails with bug.d(5): Error: incomplete mixin type a => 0 on new dmd, used to work until very recently. Up to 2.087.1: Success and no output Since 2.088.0: Failure with output: onlineapp.d(5): Error: incomplete mixin type `a => 0` still works on the ldc and gdc versions I have here on my computer.
Comment #1 by b2.temp — 2019-11-22T04:17:06Z