Skip to content

Commit dd69938

Browse files
committed
WIP
1 parent 11230e0 commit dd69938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sips/pending/_posts/2016-01-01-static-members.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following rules ensure that method can be correctly compiled into static mem
4343
6. If companion `object P` defines an `@static` method or field `foo`, classes inheriting from companion `class P` and their companions are not allowed to define term members with name `foo`.
4444

4545
## Compilation scheme ##
46-
The current proposed scheme piggybacks on already existing scoping restrictions in typer, thus requiring `@static` methods to be defined in `objects`.
46+
No modificaiton of typer is planned. The current proposed scheme piggybacks on already existing scoping restrictions in typer, thus requiring `@static` methods to be defined in `objects`.
4747
If implemented in dotty code base, such modifications would be needed:
4848
- extend RefChecks to check restrictions 1, 2, 4, 5 and 6. This can be done in a separate mini-phase;
4949
- extend LamdaLift.CollectDependencies to be aware that accessing member annotated `@static` should not trigger capturing object that contains this member;

0 commit comments

Comments
 (0)