https://issues.dlang.org/show_bug.cgi?id=14353
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #6 from Kenji Hara <[email protected]> --- (In reply to ag0aep6g from comment #1) > I think this is invalid. `t.add` and `s.add` are parentheses-less calls. So > the error about T.add not being callable "using argument types ()" is > correct. To get a delegate, add '&': That's right. When a function symbol identifier without address operator appears in expressions, it will be evaluated to a parenthesis-less function call. Therefore, it's definitely a bug in SDC. --
