From 9dfd5244ad2953753535e82acd05e72e5ab2bc5f Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 16 May 2025 10:42:11 -0700 Subject: Allow lambda exprs without captures to coerce to `functype`. (#7129) --- source/slang/slang-ast-modifier.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/slang/slang-ast-modifier.h') diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index e566eca9e..ac1960685 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -158,6 +158,14 @@ class SynthesizedModifier : public Modifier FIDDLE(...) }; +// Marks that the definition of a func decl is synthesized static invoke func for +// a lambda that doesn't capture anything. +FIDDLE() +class SynthesizedStaticLambdaFuncModifier : public Modifier +{ + FIDDLE(...) +}; + // Marks a synthesized variable as local temporary variable. FIDDLE() class LocalTempVarModifier : public Modifier -- cgit v1.2.3