Skip to content

Commit 86a562f

Browse files
committed
Untyped function literal isn't detected
1 parent ef1bf19 commit 86a562f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/traits.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7682,6 +7682,8 @@ template isCallable(alias callable)
76827682
static assert( isCallable!g);
76837683
static assert( isCallable!S1);
76847684
static assert( isCallable!S2);
7685+
7686+
static assert(!isCallable!((x) {}));
76857687
}
76867688

76877689
/// Overloaded functions and function templates instantiable with `!()`.

0 commit comments

Comments
 (0)