Commit 786b0bc
committed
Compile an empty source in InteractiveDriver ctor
This is necessary because we may be using this InteractiveDriver before
asking it to compile anything (which would have initialized it). This
happens, for instance, if we use this Driver to resolve a symbol coming
from a different Driver.
Drivers are not meant to be used before being initialized and can crash.1 parent a49b25d commit 786b0bc
File tree
1 file changed
+14
-0
lines changed- compiler/src/dotty/tools/dotc/interactive
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
301 | 315 | | |
302 | 316 | | |
303 | 317 | | |
| |||
0 commit comments