We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34fa82c commit 7fd8b1eCopy full SHA for 7fd8b1e
src/dotty/tools/dotc/core/Types.scala
@@ -35,6 +35,8 @@ object Types {
35
36
private var recCount = 0 // used temporarily for debugging. TODO: remove
37
38
+ private var nextId = 0
39
+
40
/** The class of types.
41
* The principal subclasses and sub-objects are as follows:
42
*
@@ -70,6 +72,13 @@ object Types {
70
72
71
73
// ----- Tests -----------------------------------------------------
74
75
+ val uniqId = {
76
+ nextId = nextId + 1
77
+// if(nextId == 19555)
78
+// println("foo")
79
+ nextId
80
+ }
81
82
/** Is this type different from NoType? */
83
def exists: Boolean = true
84
0 commit comments