File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ A type which inherits `TypeProxy` is a proxy for another type accessible using
13
13
the ` underlying ` method, other types are called _ ground_ types and inherit
14
14
` CachedGroundType ` or ` UncachedGroundType ` .
15
15
16
+ Here's a diagram, copied from [ dotty/tools/dotc/core/Types.scala] [ 1 ] :
17
+
16
18
```
17
19
Type -+- ProxyType --+- NamedType ----+--- TypeRef
18
20
| | \
@@ -22,19 +24,22 @@ Type -+- ProxyType --+- NamedType ----+--- TypeRef
22
24
| | +--- SuperType
23
25
| | +--- ConstantType
24
26
| | +--- MethodParam
25
- | | +--- RefinedThis
27
+ | | +----RecThis
28
+ | | +--- SkolemType
26
29
| +- PolyParam
27
- | +- RefinedType
30
+ | +- RefinedOrRecType -+-- RefinedType
31
+ | | -+-- RecType
32
+ | +- HKApply
28
33
| +- TypeBounds
29
34
| +- ExprType
30
35
| +- AnnotatedType
31
36
| +- TypeVar
37
+ | +- PolyType
32
38
|
33
39
+- GroundType -+- AndType
34
40
+- OrType
35
41
+- MethodType -----+- ImplicitMethodType
36
42
| +- JavaMethodType
37
- +- PolyType
38
43
+- ClassInfo
39
44
|
40
45
+- NoType
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ object Types {
73
73
* +- NoPrefix
74
74
* +- ErrorType
75
75
* +- WildcardType
76
+ *
77
+ * Note: please keep in sync with copy in `docs/docs/internals/type-system.md`.
76
78
*/
77
79
abstract class Type extends DotClass with Hashable with printing.Showable {
78
80
You can’t perform that action at this time.
0 commit comments