Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -6099,7 +6099,7 @@ template BuiltinTypeOf(T)
/**
* Detect whether `T` is a built-in boolean type.
*/
enum bool isBoolean(T) = __traits(isUnsigned, T) && is(BooleanTypeOf!T);
enum bool isBoolean(T) = __traits(isUnsigned, T) && is(T : bool);

///
@safe unittest
Expand Down