October 04 [Issue 24792] New: is expression doesn't seem to correctly handle function attributes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24792 Issue ID: 24792 Summary: is expression doesn't seem to correctly handle function attributes Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: turkeyman@gmail.com This shouldn't emit `true`: alias Fun = void function(int); pragma(msg, is(Fun : RT function(Args) nothrow @nogc, RT, Args...)); The function pointer Fun should not say it's convertible to a nothrow @nogc function pointer; because it's not! -- |
Copyright © 1999-2021 by the D Language Foundation