Bug 10349 – UFCS fails under a with statement block

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-12T21:40:00Z
Last change time
2013-06-13T02:23:51Z
Keywords
rejects-valid
Assigned to
nobody
Creator
alanb

Comments

Comment #0 by alanb — 2013-06-12T21:40:55Z
Attempts to use UFCS as a means to externally extend classes and structs fails when used under a with statement. Example: struct S { void a(){ ... } void b(){ ... } void d(){ ... } } void c(S s){ ... } void main() { S s; with (s) { a; b; c; // compiler error d; } }
Comment #1 by k.hara.pg — 2013-06-13T02:23:51Z
*** This issue has been marked as a duplicate of issue 8000 ***