File tree 1 file changed +7
-3
lines changed
docs/docs/reference/dropped-features 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
layout : doc-page
3
- title : " Dropped: wildcard initializer "
3
+ title : " Dropped: Wildcard Initializer "
4
4
---
5
5
6
6
The syntax
7
+
7
8
``` scala
8
9
var x : A = _
9
10
```
11
+
10
12
that was used to indicate an uninitialized field, has been dropped.
11
- At its place there is a special value ` uninitialized ` in the ` scala.compiletime ` package. To get an uninitialized field, you now write
13
+ At its place there is a special value ` uninitialized ` in the ` scala.compiletime ` package.
14
+ To get an uninitialized field, you now write
15
+
12
16
``` scala
13
17
import scala .compiletime .uninitialized
14
18
15
19
var x : A = uninitialized
16
20
```
17
- To enable cross-compilation, ` _ ` is still supported, but it will be dropped in a future 3.x version.
18
21
22
+ To enable cross-compilation, ` _ ` is still supported, but it will be dropped in a future 3.x version.
You can’t perform that action at this time.
0 commit comments