From 6f5c71eef189794ba528303b4d4cda6438d86253 Mon Sep 17 00:00:00 2001 From: Callum Anderson Date: Sat, 22 Feb 2014 14:37:08 +1100 Subject: [PATCH] Allow function attributes in lambda expression --- stdx/d/parser.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 1b2d585..9b72755 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -4149,6 +4149,8 @@ q{(int a, ...) auto b = setBookmark(); advance(); // function | delegate skipParens(); + while (isAttribute()) + parseAttribute(); if (currentIs(tok!"=>")) { goToBookmark(b);