Skip to content

Commit ca33bdd

Browse files
committed
Explain what happens with non-static and static members of global objects.
1 parent af0572f commit ca33bdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ disqus: true
66

77
__Dmitry Petrashko, Sébastien Doeraene and Martin Odersky__
88

9-
__first submitted TODO 2016__
9+
__first submitted 11 January 2016__
1010

1111
## Motivation ##
1212

@@ -102,7 +102,9 @@ object O {
102102
{% endhighlight %}
103103
```
104104

105-
Under proposed scheme users will be able to opt-in to have field `f` on inner object `I` generated as static field.
105+
Under proposed scheme users will be able to opt-in to have field `f` defined inside inner object `I` emmited as static field.
106+
In case `O.d` is annotated with `@static` the field will be crated as static field in `class O`.
107+
If not annotated, it will be created in the companion module with a static forwarder in `class O`.
106108

107109
## Restrictions ##
108110

0 commit comments

Comments
 (0)