Commit f2f4d91
committed
Check if owner is inline trait last
Calling .owner on some traits (for example HashUtils) results in an exception with the message "Cyclic reference involving trait HashTable".
Using the short-circuiting of &&, checking for the owner symbol later solves this issue when bootstrapping.1 parent 3f9147d commit f2f4d91
File tree
1 file changed
+2
-2
lines changed- compiler/src/dotty/tools/dotc/transform
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments