File tree 3 files changed +7
-3
lines changed 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ object Flags {
448
448
/** Flags guaranteed to be set upon symbol creation */
449
449
final val FromStartFlags =
450
450
AccessFlags | Module | Package | Deferred | Final | MethodOrHKCommon | Param | ParamAccessor | Scala2ExistentialCommon |
451
- InSuperCall | Touched | JavaStatic | CovariantOrOuter | ContravariantOrLabel | ExpandedName | AccessorOrSealed |
451
+ Mutable .toCommonFlags | InSuperCall | Touched | JavaStatic | CovariantOrOuter | ContravariantOrLabel | ExpandedName | AccessorOrSealed |
452
452
CaseAccessorOrBaseTypeArg | Fresh | Frozen | Erroneous | ImplicitCommon | Permanent | Synthetic |
453
453
LazyOrTrait | SuperAccessorOrScala2x | SelfNameOrImplClass
454
454
Original file line number Diff line number Diff line change @@ -830,8 +830,8 @@ class Namer { typer: Typer =>
830
830
831
831
// println(s"final inherited for $sym: ${inherited.toString}") !!!
832
832
// println(s"owner = ${sym.owner}, decls = ${sym.owner.info.decls.show}")
833
- def isInline = sym.is(Final , butNot = Method )
834
-
833
+ def isInline = sym.is(Final , butNot = Method | Mutable )
834
+
835
835
// Widen rhs type and approximate `|' but keep ConstantTypes if
836
836
// definition is inline (i.e. final in Scala2).
837
837
def widenRhs (tp : Type ): Type = tp.widenTermRefExpr match {
Original file line number Diff line number Diff line change
1
+ class Test {
2
+ final var x = false
3
+ x = true
4
+ }
You can’t perform that action at this time.
0 commit comments