November 28, 2015 [dmd-internals] [D-Programming-Language/dmd] d8eb30: fix Issue 15352 - template arguments matching erro... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: d8eb30c8da082cb7533a95c3930be46f818edadf https://github.com/D-Programming-Language/dmd/commit/d8eb30c8da082cb7533a95c3930be46f818edadf Author: k-hara <k.hara.pg@gmail.com> Date: 2015-11-20 (Fri, 20 Nov 2015) Changed paths: M src/dtemplate.d M src/expression.d M src/mtype.d M test/runnable/template9.d Log Message: ----------- fix Issue 15352 - template arguments matching error with delegates 1. `match()` function relies on `Expression.equals()`. Add `FuncExp.equals` for the identity comparison of two `FuncExp`s. 2. When a `FuncLiteralDeclaration` is listed directly in template arguments, it needs to be converted to `FuncExp` to be able to match `TemplateValueParameter`. Commit: a498e675b5a685494a2168a9438fe34b0467650a https://github.com/D-Programming-Language/dmd/commit/a498e675b5a685494a2168a9438fe34b0467650a Author: Walter Bright <walter@walterbright.com> Date: 2015-11-28 (Sat, 28 Nov 2015) Changed paths: M src/dtemplate.d M src/expression.d M src/mtype.d M test/runnable/template9.d Log Message: ----------- Merge pull request #5275 from 9rnsr/fix15352 Issue 15352 - template arguments matching error with delegates Compare: https://github.com/D-Programming-Language/dmd/compare/7b2a4fff5d7b...a498e675b5a6 |
Copyright © 1999-2021 by the D Language Foundation