mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Fix issue 22939 - bad error message: Error: no property msg
for type string
This commit is contained in:
parent
811deefa85
commit
ba92563a0d
5 changed files with 11 additions and 11 deletions
|
@ -1589,7 +1589,7 @@ char[] sformat(alias fmt, Args...)(char[] buf, Args args)
|
||||||
if (isSomeString!(typeof(fmt)))
|
if (isSomeString!(typeof(fmt)))
|
||||||
{
|
{
|
||||||
alias e = checkFormatException!(fmt, Args);
|
alias e = checkFormatException!(fmt, Args);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .sformat(buf, fmt, args);
|
return .sformat(buf, fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,7 @@ if (isSomeString!(typeof(fmt)))
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, Args);
|
alias e = checkFormatException!(fmt, Args);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .formattedRead(r, fmt, args);
|
return .formattedRead(r, fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -677,7 +677,7 @@ if (isSomeString!(typeof(fmt)))
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, Args);
|
alias e = checkFormatException!(fmt, Args);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .formattedWrite(w, fmt, args);
|
return .formattedWrite(w, fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@ class OutBuffer
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return this.writef(fmt, args);
|
return this.writef(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,7 +377,7 @@ class OutBuffer
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return this.writefln(fmt, args);
|
return this.writefln(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
12
std/stdio.d
12
std/stdio.d
|
@ -1783,7 +1783,7 @@ Throws: `Exception` if the file is not opened.
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return this.writef(fmt, args);
|
return this.writef(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1802,7 +1802,7 @@ Throws: `Exception` if the file is not opened.
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return this.writefln(fmt, args);
|
return this.writefln(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2151,7 +2151,7 @@ $(CONSOLE
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(format, Data);
|
alias e = checkFormatException!(format, Data);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return this.readf(format, data);
|
return this.readf(format, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4388,7 +4388,7 @@ if (isSomeString!(typeof(fmt)))
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .writef(fmt, args);
|
return .writef(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4429,7 +4429,7 @@ if (isSomeString!(typeof(fmt)))
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(fmt, A);
|
alias e = checkFormatException!(fmt, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .writefln(fmt, args);
|
return .writefln(fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4510,7 +4510,7 @@ if (isSomeString!(typeof(format)))
|
||||||
import std.format : checkFormatException;
|
import std.format : checkFormatException;
|
||||||
|
|
||||||
alias e = checkFormatException!(format, A);
|
alias e = checkFormatException!(format, A);
|
||||||
static assert(!e, e.msg);
|
static assert(!e, e);
|
||||||
return .readf(format, args);
|
return .readf(format, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue