wilzbach / tools-test

1 stars 0 forks source link

changed.d compile error #155

Closed wilzbach closed 6 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#16965 From: rdirective@gmail.com Reported version: D2 CC: @wilzbach, hsteoh@quickfur.ath.cx

wilzbach commented 7 years ago

Comment author: rdirective@gmail.com

Created attachment 1624 screenshot of compile state after change

changed.d(77): Error: variable changed.getIssues.closedRE : Unable to initialize enum with class or pointer to struct. Use static const variable instead.

I edited line 77 enum closedRE = ctRegex!(((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+), "i");

changed enum to static const static const closedRE = ctRegex!(((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+), "i");

This compiled but I do not know if this is good since I am new to D

Attached file: Screenshot from 2016-12-11 06-43-56.png (image/png, 271444 bytes) Description: screenshot of compile state after change

wilzbach commented 7 years ago

Comment author: rdirective@gmail.com

Created attachment 1625 git diff patch

Attached file: patch (text/plain, 709 bytes) Description: git diff patch

wilzbach commented 6 years ago

Comment author: @wilzbach

This has been fixed quite a while ago. Nowadays tools uses a CI to prevent such errors from happening again.