How to determine if a passed argument is a string literal?

@xAlien95 is correct. The way Text achieve that is by annotating the initializer generic over StringProtocol to be @_disfavoredOverload.

That said I should also mention the usual words of warning: that is a private attribute for a reason :blush:.

2 Likes