Bug 15560 – is expression with template parameter list and fqn fails

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-12T21:18:37Z
Last change time
2024-12-13T18:46:31Z
Assigned to
No Owner
Creator
Jacob Carlborg
Moved to GitHub: dmd#17743 →

Comments

Comment #0 by doob — 2016-01-12T21:18:37Z
The following example fails to compile: import std.stdio; import std.typecons; void main() { Nullable!(int) a; static if(is(typeof(a) == std.typecons.Nullable!(U), U)) writeln("true"); else writeln("false"); } If I don't use a fully qualified name in the is-expression it compiles successfully. I've tried to compile with DMD 2.070.0-b1 and a bunch of older versions as well.
Comment #1 by robert.schadek — 2024-12-13T18:46:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17743 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB