Skip to content

Commit c0d730d

Browse files
committed
Remove proposal example on .type
1 parent abda7bc commit c0d730d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

_sips/sips/2014-06-27-42.type.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ Lightbend Scala compiler.
8888
foo(1: 1) // type ascription
8989
```
9090

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-
9791
+ The presence of an upper bound of `Singleton` on a formal type parameter indicates that
9892
singleton types should be inferred for type parameters at call sites.
9993
```

0 commit comments

Comments
 (0)