isCallable fails

frame frame86 at live.com
Wed Jan 20 21:32:45 UTC 2021


On Wednesday, 20 January 2021 at 19:01:19 UTC, frame wrote:
> It also compiles if
>
> value = new T

enum R = isCallable!S

throws:

Error: cannot infer type from template instance 
isCallable!(data), possible circular dependency

So that seems to be the problem. There is a circular dependency 
somewhere the compiler cannot resolve.

I believe it has something to do with "alias get this" so get() 
is parsed in this context or whatever. Any suggestions?




More information about the Digitalmars-d-learn mailing list