Bug 17270 – std.experimental.Final fails on pointers

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-03-23T00:10:08Z
Last change time
2018-01-05T13:27:56Z
Keywords
pull
Assigned to
No Owner
Creator
Bolpat

Comments

Comment #0 by qs.il.paperinik — 2017-03-23T00:10:08Z
The following code fails on this code, because unary * returns int and not int*. import std.experimental.typecons : Final; int i = 1; Final!(int*) fp = &i; assert(*fp == 1);
Comment #1 by qs.il.paperinik — 2017-03-23T00:26:30Z
Comment #2 by github-bugzilla — 2017-04-20T19:59:55Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/05620ead4b7b80984afb44fb5aa64528baa2fdca Fix issue 17270 https://github.com/dlang/phobos/commit/2e33404b8182ced214c47fcd02812549cbfe9f5f Merge pull request #5302 from Bolpat/Final Fix Issue 17270 - std.experimental.Final fails on pointers merged-on-behalf-of: H. S. Teoh <[email protected]>
Comment #3 by github-bugzilla — 2017-06-17T11:34:10Z
Comment #4 by github-bugzilla — 2017-08-07T12:26:32Z
Comment #5 by github-bugzilla — 2018-01-05T13:27:56Z