We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.type
1 parent abda7bc commit c0d730dCopy full SHA for c0d730d
_sips/sips/2014-06-27-42.type.md
@@ -88,12 +88,6 @@ Lightbend Scala compiler.
88
foo(1: 1) // type ascription
89
```
90
91
-+ The `.type` singleton type forming operator can be applied to values of all subtypes of `Any`.
92
- ```
93
- def foo[T](t: T): t.type = t
94
- foo(23) // result is 23: 23
95
96
-
97
+ The presence of an upper bound of `Singleton` on a formal type parameter indicates that
98
singleton types should be inferred for type parameters at call sites.
99
0 commit comments