Skip to content

Commit a2e89fb

Browse files
committed
WIP
1 parent cd40e8e commit a2e89fb

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
@@ -101,7 +101,7 @@ The following rules ensure that method can be correctly compiled into static mem
101101

102102
5. If a member `foo` of an `object C` is annotated with `@static`, the companion class `C` is not allowed to inherit classes that define a term member with name `foo`.
103103

104-
6. Only @static methods and vals are supported in companions of traits. Java8 supports those, but not vars, and JavaScript does not have interfaces at all.
104+
6. Only `@static` methods and vals are supported in companions of traits. Java8 supports those, but not vars, and JavaScript does not have interfaces at all.
105105

106106
## Compilation scheme ##
107107
No modificaiton of the typer is planned. The current proposed scheme piggybacks on already existing scoping restrictions in the typer, thus requiring `@static` methods to be defined in `objects`.

0 commit comments

Comments
 (0)