Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 1892427

Browse files
committed
Fix filter
1 parent fa83d34 commit 1892427

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validation-scala-plugin/src/main/scala/bitlap/validation/plugin/ValidationMethodArgsPhase.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ final class ValidationMethodArgsPhase extends PluginPhase:
4343
override def transformDefDef(tree: DefDef)(using Context): Tree = {
4444
// only public methods of classes are supported
4545
if (
46-
tree.symbol.isClassConstructor ||
4746
tree.symbol.is(Flags.Synthetic) ||
47+
tree.symbol.isConstructor ||
4848
tree.symbol.isStatic ||
49-
tree.symbol.isPrivate
49+
tree.symbol.isPrivate ||
50+
tree.name == nme.CONSTRUCTOR
5051
) {
5152
return tree
5253
}

0 commit comments

Comments
 (0)