July 14, 2021 Learn » Re: static assert not printing out along the error diagnostic | |||
|---|---|---|---|
| |||
...error message");
// unconditional structure code
}
unittest {
gudtUGC!int;
}
```
which fails with
```
example.d(4): Error... | |||
July 14, 2021 Learn » Re: static assert not printing out along the error diagnostic | |||
|---|---|---|---|
| |||
...struct gudtUGC(T) {
static assert(isString!T, "error message");
// unconditional structure code
}
```
case 2:
```d... | |||
July 14, 2021 Learn » Re: static assert not printing out along the error diagnostic | |||
|---|---|---|---|
| |||
...to the `else` branch makes the assert message show up:
} else {
alias ResultType = void;
static... | |||
July 12, 2021 Issues » [Issue 22118] New: Const union causes false multiple-initialization error in constructor | |||
|---|---|---|---|
| |||
...15,39): Previous initialization is here. --- The error message is false: there is only a... | |||
July 12, 2021 Issues » [Issue 22117] New: Can't store scope pointer in a SumType | |||
|---|---|---|---|
| |||
...123;
SumType!(int*) s = &n;
}
---
The error message is:
---
Error: reference to local variable `n... | |||
July 11, 2021 Issues » [Issue 14064] Error message about @ attributes incomplete. | |||
|---|---|---|---|
| |||
...dmd pull request #12852 "Fix issue 14064 - Error message about @ attributes incomplete" was merged into... | |||
July 09, 2021 Learn » Re: assert(false) and GC | |||
|---|---|---|---|
| |||
...d string s = __FUNCTION__ ~ "This is an error message"; ``` And no GC allocations occur. Even... | |||
July 09, 2021 Issues » [Issue 14064] Error message about @ attributes incomplete. | |||
|---|---|---|---|
| |||
...issue 14064 - Error message about @ attributes incomplete" fixing this issue: - fix issue 14064 - message about... | |||
July 09, 2021 Learn » Re: assert(false) and GC | |||
|---|---|---|---|
| |||
...nogc
void main() {
enum msg = __FUNCTION__ ~ "This is an error message";
assert(false, msg);
}
Ali
| |||
July 09, 2021 Learn » Re: Can I get the time "Duration" in "nsecs" acurracy? | |||
|---|---|---|---|
| |||
...nsecs"; ``` and I get the following error message: "Error: cannot implicitly convert expression \`dur.total... | |||
Copyright © 1999-2021 by the D Language Foundation