File tree 3 files changed +5
-5
lines changed
src/dotty/tools/dotc/config
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,6 @@ object Config {
225
225
* `Properties.experimental`. Can be re-assigned, e.g. to allow tests
226
226
* of experimental features.
227
227
*/
228
- @ sharable private [dotty] var allowExperimentalFeatures =
228
+ @ sharable private [dotty] var compilerSupportsExperimental =
229
229
Properties .experimental && ! assumeNonExperimentalCompiler
230
230
}
Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ object Feature:
97
97
else
98
98
false
99
99
100
- def allowExperimentalFeatures (using Context ) =
101
- Config .allowExperimentalFeatures && ! ctx.settings.YnoExperimental .value
100
+ def compilerSupportsExperimental (using Context ) =
101
+ Config .compilerSupportsExperimental && ! ctx.settings.YnoExperimental .value
102
102
103
103
def checkExperimentalFeature (which : String , srcPos : SrcPos = NoSourcePosition )(using Context ) =
104
- if ! allowExperimentalFeatures then
104
+ if ! compilerSupportsExperimental then
105
105
report.error(i " Experimental feature $which may only be used with nightly or snapshot version of compiler " , srcPos)
106
106
107
107
/** Check that experimental compiler options are only set for snapshot or nightly compiler versions. */
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import dotty.tools.vulpix.TestConfiguration.defaultOptions
39
39
trait ParallelTesting extends RunnerOrchestration { self =>
40
40
import ParallelTesting ._
41
41
42
- Config .allowExperimentalFeatures = true
42
+ Config .compilerSupportsExperimental = true
43
43
44
44
/** If the running environment supports an interactive terminal, each `Test`
45
45
* will be run with a progress bar and real time feedback
You can’t perform that action at this time.
0 commit comments