File tree 1 file changed +1
-8
lines changed
compiler/test/dotty/tools/vulpix
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,8 @@ final case class TestFlags(
26
26
private val languageFeatureFlag = " -language:"
27
27
private def withoutLanguageFeaturesOptions = options.filterNot(_.startsWith(languageFeatureFlag))
28
28
29
- // TODO simplify to add `-language:feature` to `options` once
30
- // https://github.com/lampepfl/dotty/issues/9787 is implemented
31
29
def andLanguageFeature (feature : String ) =
32
- val (languageFeatures, rest) = options.partition(_.startsWith(languageFeatureFlag))
33
- val existingFeatures = languageFeatures.flatMap(_.stripPrefix(languageFeatureFlag).split(" ," ))
34
- val featurePrefix =
35
- if existingFeatures.isEmpty then " "
36
- else existingFeatures.mkString(" ," ) + " ,"
37
- copy(options = rest ++ Array (languageFeatureFlag + featurePrefix + feature))
30
+ copy(options = options ++ Array (s " $languageFeatureFlag$feature" ))
38
31
39
32
def withoutLanguageFeature (feature : String ) =
40
33
val (languageFeatures, rest) = options.partition(_.startsWith(languageFeatureFlag))
You can’t perform that action at this time.
0 commit comments