[Issue 7093] New: aliased type sometimes isn't resolved
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 10 23:59:22 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7093
Summary: aliased type sometimes isn't resolved
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-12-10 23:59:21 PST ---
In following code, aliased type T is not resolved.
----
void main()
{
alias int T;
static assert( is( T** : const(T**) )); // Line 4: causes an error
static assert( is( T* : const(T*) )); // OK
}
output:
----
test.d(4): Error: static assert (is(int*** : const(T***))) is false
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list