Fix issue 22939 - bad error message: Error: no property msg for type string

This commit is contained in:
Dennis Korpel 2022-03-29 14:52:44 +02:00 committed by The Dlang Bot
parent 811deefa85
commit ba92563a0d
5 changed files with 11 additions and 11 deletions

View file

@ -1589,7 +1589,7 @@ char[] sformat(alias fmt, Args...)(char[] buf, Args args)
if (isSomeString!(typeof(fmt)))
{
alias e = checkFormatException!(fmt, Args);
static assert(!e, e.msg);
static assert(!e, e);
return .sformat(buf, fmt, args);
}

View file

@ -305,7 +305,7 @@ if (isSomeString!(typeof(fmt)))
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, Args);
static assert(!e, e.msg);
static assert(!e, e);
return .formattedRead(r, fmt, args);
}

View file

@ -677,7 +677,7 @@ if (isSomeString!(typeof(fmt)))
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, Args);
static assert(!e, e.msg);
static assert(!e, e);
return .formattedWrite(w, fmt, args);
}

View file

@ -331,7 +331,7 @@ class OutBuffer
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return this.writef(fmt, args);
}
@ -377,7 +377,7 @@ class OutBuffer
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return this.writefln(fmt, args);
}

View file

@ -1783,7 +1783,7 @@ Throws: `Exception` if the file is not opened.
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return this.writef(fmt, args);
}
@ -1802,7 +1802,7 @@ Throws: `Exception` if the file is not opened.
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return this.writefln(fmt, args);
}
@ -2151,7 +2151,7 @@ $(CONSOLE
import std.format : checkFormatException;
alias e = checkFormatException!(format, Data);
static assert(!e, e.msg);
static assert(!e, e);
return this.readf(format, data);
}
@ -4388,7 +4388,7 @@ if (isSomeString!(typeof(fmt)))
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return .writef(fmt, args);
}
@ -4429,7 +4429,7 @@ if (isSomeString!(typeof(fmt)))
import std.format : checkFormatException;
alias e = checkFormatException!(fmt, A);
static assert(!e, e.msg);
static assert(!e, e);
return .writefln(fmt, args);
}
@ -4510,7 +4510,7 @@ if (isSomeString!(typeof(format)))
import std.format : checkFormatException;
alias e = checkFormatException!(format, A);
static assert(!e, e.msg);
static assert(!e, e);
return .readf(format, args);
}