Commit ee1160c
committed
Do not accidentally force diagnostic message in
Diagnostic messages are contained within a `MessageContainer` which
takes the message by name. This is in order for the compiler to be able
to throw away messages without evaluting potentially costly operations.
Calling `.contained` breaks this laziness.reportWarning
1 parent 5514655 commit ee1160c
File tree
2 files changed
+5
-3
lines changed- compiler/src/dotty/tools/dotc/reporting
- diagnostic
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments