diff --git a/source/fluid/text.d b/source/fluid/text.d index e3033f92..9e606784 100644 --- a/source/fluid/text.d +++ b/source/fluid/text.d @@ -30,7 +30,9 @@ alias Text = StyledText!(); /// Draws text: handles updates, formatting and styling. struct StyledText(StyleRange = TextStyleSlice[]) { - static assert(isForwardRange!(StyleRange, TextStyleSlice), + static assert(isForwardRange!StyleRange, + "StyleRange must be a valid forward range of TextStyleSlices"); + static assert(is(ElementType!StyleRange : TextStyleSlice), "StyleRange must be a valid forward range of TextStyleSlices"); public {