Commit 8621197
authored
Add a test of evaluating a type with a link in its attrs (#17)
I was poking around at #13, thinking about to what extent the various
data structures there can be unified, and noticed that no tests failed
if I got rid of `seen`!
That seemed wrong, so I wrote some tests to catch those
cases. (Without seen, we blow the stack.)
Note that in these cases (of classes), not only do we want to not blow
the stack, but we would like the recursively referenced type to be
identical to the top-level one. (Whereas I think for *type aliases*,
I think that is not what we want, since it probably wouldn't pretty
print correctly?)1 parent 3c6a50a commit 8621197
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
157 | 188 | | |
158 | 189 | | |
159 | 190 | | |
| |||
0 commit comments