[Issue 24792] New: is expression doesn't seem to correctly handle function attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 4 04:57:54 UTC 2024
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 at puremagic.com
Reporter: turkeyman at 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!
--
More information about the Digitalmars-d-bugs
mailing list