argparse icon indicating copy to clipboard operation
argparse copied to clipboard

A lazy string crashes the compiler

Open SirNickolas opened this issue 7 months ago • 4 comments

An example from the Readme, reduced:

import argparse;

struct T {
    @(PositionalArgument(0).Description(() => "Argument description"))
    string param0;
}

void main() {
    CLI!T.parseArgs!((T t) { })(["-h"]); // SIGILL
}

DMD 2.105.3.

SirNickolas avatar Nov 18 '23 06:11 SirNickolas