@@ -61,9 +61,10 @@ class CompilationTests extends ParallelTesting {
6161 compileFile(" tests/pos-special/i7296.scala" , defaultOptions.and(" -strict" , " -deprecation" , " -Xfatal-warnings" )),
6262 compileFile(" tests/pos-special/notNull.scala" , defaultOptions.and(" -Yexplicit-nulls" )),
6363 compileDir(" tests/pos-special/adhoc-extension" , defaultOptions.and(" -strict" , " -feature" , " -Xfatal-warnings" )),
64- compileFile(" tests/pos-special/i7575.scala" , defaultOptions.and( " -language: dynamics" )),
64+ compileFile(" tests/pos-special/i7575.scala" , defaultOptions.andLanguageFeature( " dynamics" )),
6565 compileFile(" tests/pos-special/kind-projector.scala" , defaultOptions.and(" -Ykind-projector" )),
6666 compileFile(" tests/run/i5606.scala" , defaultOptions.and(" -Yretain-trees" )),
67+ compileFile(" tests/pos-custom-args/i5498-postfixOps.scala" , defaultOptions withoutLanguageFeature " postfixOps" ),
6768 ).checkCompile()
6869 }
6970
@@ -128,7 +129,7 @@ class CompilationTests extends ParallelTesting {
128129 compileFile(" tests/neg-custom-args/i3246.scala" , scala2CompatMode),
129130 compileFile(" tests/neg-custom-args/overrideClass.scala" , scala2CompatMode),
130131 compileFile(" tests/neg-custom-args/ovlazy.scala" , scala2CompatMode.and(" -migration" , " -Xfatal-warnings" )),
131- compileFile(" tests/neg-custom-args/autoTuplingTest.scala" , defaultOptions.and( " -language: noAutoTupling" )),
132+ compileFile(" tests/neg-custom-args/autoTuplingTest.scala" , defaultOptions.andLanguageFeature( " noAutoTupling" )),
132133 compileFile(" tests/neg-custom-args/nopredef.scala" , defaultOptions.and(" -Yno-predef" )),
133134 compileFile(" tests/neg-custom-args/noimports.scala" , defaultOptions.and(" -Yno-imports" )),
134135 compileFile(" tests/neg-custom-args/noimports2.scala" , defaultOptions.and(" -Yno-imports" )),
@@ -153,9 +154,10 @@ class CompilationTests extends ParallelTesting {
153154 compileFile(" tests/neg-custom-args/indentRight.scala" , defaultOptions.and(" -noindent" , " -Xfatal-warnings" )),
154155 compileFile(" tests/neg-custom-args/extmethods-tparams.scala" , defaultOptions.and(" -deprecation" , " -Xfatal-warnings" )),
155156 compileDir(" tests/neg-custom-args/adhoc-extension" , defaultOptions.and(" -strict" , " -feature" , " -Xfatal-warnings" )),
156- compileFile(" tests/neg/i7575.scala" , defaultOptions.and(" -language:_" )),
157+ compileFile(" tests/neg/i7575.scala" , defaultOptions.withoutLanguageFeatures. and(" -language:_" )),
157158 compileFile(" tests/neg-custom-args/kind-projector.scala" , defaultOptions.and(" -Ykind-projector" )),
158159 compileFile(" tests/neg-custom-args/typeclass-derivation2.scala" , defaultOptions.and(" -Yerased-terms" )),
160+ compileFile(" tests/neg-custom-args/i5498-postfixOps.scala" , defaultOptions withoutLanguageFeature " postfixOps" ),
159161 ).checkExpectedErrors()
160162 }
161163
@@ -223,7 +225,7 @@ class CompilationTests extends ParallelTesting {
223225 Properties .compilerInterface, Properties .scalaLibrary, Properties .scalaAsm,
224226 Properties .dottyInterfaces, Properties .jlineTerminal, Properties .jlineReader,
225227 ).mkString(File .pathSeparator),
226- Array (" -Ycheck-reentrant" , " -Yemit-tasty-in-class" )
228+ Array (" -Ycheck-reentrant" , " -Yemit-tasty-in-class" , " -language:postfixOps " )
227229 )
228230
229231 val libraryDirs = List (Paths .get(" library/src" ), Paths .get(" library/src-bootstrapped" ))
0 commit comments