mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Do not generate detailed candidates / constraint error msg in speculative contexts
Unless the error is actually going to be printed.
This commit is contained in:
parent
25799d3841
commit
a2d2c4b31e
2 changed files with 19 additions and 9 deletions
|
@ -1,8 +1,11 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/ice11856_1.d(13): Error: none of the overloads of template `ice11856_1.g` are callable using argument types `!()(A)`
|
||||
fail_compilation/ice11856_1.d(11): Candidate is: `g(T)(T x)`
|
||||
fail_compilation/ice11856_1.d(16): Error: none of the overloads of template `ice11856_1.g` are callable using argument types `!()(A)`
|
||||
fail_compilation/ice11856_1.d(14): Candidate is: `g(T)(T x)`
|
||||
with `T = A`
|
||||
must satisfy the following constraint:
|
||||
` is(typeof(x.f()))`
|
||||
---
|
||||
*/
|
||||
struct A {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue