Bug 22695 – std.traits.isBuiltinType is false for typeof(null)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-01-21T13:17:27Z
Last change time
2022-01-28T08:26:12Z
Keywords
pull
Assigned to
No Owner
Creator
Harry Vennik

Comments

Comment #0 by htvennik — 2022-01-21T13:17:27Z
IMO this should compile: ----------- import std.traits : isBuiltinType; static assert(isBuiltinType!(typeof(null))); ----------- But it doesn't: Error: static assert: `isBuiltinType!(typeof(null))` is false
Comment #1 by dlang-bot — 2022-01-24T21:08:25Z
@wolframw created dlang/phobos pull request #8365 "Fix Issue 22695 - std.traits.isBuiltinType is false for typeof(null)" fixing this issue: - Fix Issue 22695 - std.traits.isBuiltinType is false for typeof(null) https://github.com/dlang/phobos/pull/8365
Comment #2 by dlang-bot — 2022-01-28T08:26:12Z
dlang/phobos pull request #8365 "Fix Issue 22695 - std.traits.isBuiltinType is false for typeof(null)" was merged into master: - b6efe02b649dc7c629f9e4bf5782d09b62bf3aa6 by wolframw: Fix Issue 22695 - std.traits.isBuiltinType is false for typeof(null) https://github.com/dlang/phobos/pull/8365