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