You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funassertTrue(
expression:Boolean,
@ExpressionText("expression") description:String? = null
)
funusageSample() {
assertTrue(2.equals(3))
// the compiler plugin should convert the call to something like
assertTrue(2.equals(3), description="2.equals(3)")
}
I'm hoping to tackle #45 in the coming months and think this would be another perfect fit. This sort of annotation could be a simplified version of what I'm hoping to achieve with the support library, so it will probably be a great first thing to do.
Suppose something like
See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/caller-argument-expression
WDYT?
The text was updated successfully, but these errors were encountered: