File tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ trait PropertiesTrait {
84
84
85
85
/** Whether the current version of compiler is experimental
86
86
*
87
- * 1. Snapshot and nightly releases are experimental.
87
+ * 1. Snapshot, nightly releases and non-bootstrapped compiler are experimental.
88
88
* 2. Features supported by experimental versions of the compiler:
89
89
* - research plugins
90
90
*/
91
- val experimental : Boolean = versionString.contains(" SNAPSHOT" ) || versionString.contains(" NIGHTLY" )
91
+ val experimental : Boolean = versionString.contains(" SNAPSHOT" ) || versionString.contains(" NIGHTLY" ) || versionString.contains( " nonbootstrapped " )
92
92
93
93
val copyrightString : String = scalaPropOrElse(" copyright.string" , " (c) 2002-2017 LAMP/EPFL" )
94
94
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ object Inliner {
94
94
if (tree.symbol == defn.CompiletimeTesting_typeChecks ) return Intrinsics .typeChecks(tree)
95
95
if (tree.symbol == defn.CompiletimeTesting_typeCheckErrors ) return Intrinsics .typeCheckErrors(tree)
96
96
97
- Feature .checkExperimentalDef(tree.symbol, tree)
97
+ if tree.symbol.isExperimental then
98
+ Feature .checkExperimentalDef(tree.symbol, tree)
98
99
99
100
/** Set the position of all trees logically contained in the expansion of
100
101
* inlined call `call` to the position of `call`. This transform is necessary
You can’t perform that action at this time.
0 commit comments