Bug 7703 – [UFCS] explicit template function instantiation as property

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-13T15:21:00Z
Last change time
2012-03-15T18:25:45Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hanazuki

Comments

Comment #0 by k.hanazuki — 2012-03-13T15:21:09Z
DMD(2.059HEAD) rejects UFCS with an explicitly instantiated template function called as a property. ---- void f(T)(T a) { } void main() { int x; x.f; // accepted x.f(); // accepted x.f!int; // rejected -- "f(x) isn't a template" x.f!int(); // accepted }
Comment #1 by k.hara.pg — 2012-03-14T08:33:12Z