Bug 24812 – [REG 2.106] Incorrect highlighting when diagnosing an empty enum declaration since #15664

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-10-14T07:16:55Z
Last change time
2024-11-16T23:27:15Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2024-10-14T07:16:55Z
Test case: ``` module object; enum Foo {} ``` Before: ``` Error: enum `object.Foo` enum `Foo` must have at least one member ``` After: ``` Error: enum `pr117115.Foo enum `Foo` must have at least one member ``` Introduced by: https://github.com/dlang/dmd/pull/15664
Comment #1 by ibuclaw — 2024-10-14T07:18:01Z
(In reply to Iain Buclaw from comment #0) > After: > ``` > Error: enum `pr117115.Foo enum `Foo` must have at least one member > ``` Oops, copy-paste mistake in the module name, but the odd number of backticks remains the same.
Comment #2 by dlang-bot — 2024-10-14T07:57:40Z
@thewilsonator created dlang/dmd pull request #17004 "Fix bugzilla issue 24812 - Incorrect highlighting when diagnosing an …" fixing this issue: - Fix bugzilla issue 24812 - Incorrect highlighting when diagnosing an empty enum declaration https://github.com/dlang/dmd/pull/17004
Comment #3 by dlang-bot — 2024-10-14T11:03:23Z
dlang/dmd pull request #17004 "Fix bugzilla issue 24812 - Incorrect highlighting when diagnosing an …" was merged into stable: - f4ee72f350bbb4bddf276edf8d0bebbf481a9f2f by Nicholas Wilson: Fix bugzilla issue 24812 - Incorrect highlighting when diagnosing an empty enum declaration https://github.com/dlang/dmd/pull/17004
Comment #4 by dlang-bot — 2024-11-16T23:27:15Z
dlang/dmd pull request #17069 "Merge stable" was merged into master: - b97828fef45b55541eaefe098e5508f45c27f837 by Nicholas Wilson: Fix bugzilla issue 24812 - Incorrect highlighting when diagnosing an empty enum declaration (#17004) https://github.com/dlang/dmd/pull/17069