Skip to content

Commit a3a6903

Browse files
committed
use FINAL in default only for Haxe 4 builds
1 parent 839408f commit a3a6903

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/checkstyle/checks/modifier/ModifierOrderCheck.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class ModifierOrderCheck extends Check {
1515

1616
public function new() {
1717
super(AST);
18+
#if (haxe_ver >= 4.0)
1819
modifiers = [MACRO, OVERRIDE, PUBLIC_PRIVATE, STATIC, INLINE, DYNAMIC, FINAL];
20+
#else
21+
modifiers = [MACRO, OVERRIDE, PUBLIC_PRIVATE, STATIC, INLINE, DYNAMIC];
22+
#end
1923
categories = [Category.STYLE, Category.CLARITY];
2024
}
2125

0 commit comments

Comments
 (0)