Skip to content

Commit 6eb1633

Browse files
author
Tobias Bordenca
committed
Add missing final flag in ValDef and DefDef
1 parent 4ecbb60 commit 6eb1633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/scala/tasty/reflect/Printers.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ trait Printers
690690
val flags = vdef.symbol.flags
691691
if (flags.is(Flags.Implicit)) this += highlightKeyword("implicit ", color)
692692
if (flags.is(Flags.Override)) this += highlightKeyword("override ", color)
693+
if (flags.is(Flags.Final) && !flags.is(Flags.Object)) this += highlightKeyword("final ", color)
693694

694695
printProtectedOrPrivate(vdef)
695696

@@ -739,6 +740,7 @@ trait Printers
739740
if (flags.is(Flags.Implicit)) this += highlightKeyword("implicit ", color)
740741
if (flags.is(Flags.Inline)) this += highlightKeyword("inline ", color)
741742
if (flags.is(Flags.Override)) this += highlightKeyword("override ", color)
743+
if (flags.is(Flags.Final) && !flags.is(Flags.Object)) this += highlightKeyword("final ", color)
742744

743745
printProtectedOrPrivate(ddef)
744746

0 commit comments

Comments
 (0)