From 1fcdc3ee2de30050eafd232a42d16d012d58071d Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Tue, 16 Apr 2024 02:01:32 -0700 Subject: [PATCH] Replace old-fashioned scalac test pragma --- test/async/jvm/anf.scala | 2 +- test/async/jvm/await0.scala | 2 +- test/async/jvm/block0.scala | 2 +- test/async/jvm/block1.scala | 2 +- test/async/jvm/completable-future.scala | 2 +- test/async/jvm/concurrent_AfterRefchecksIssue.scala | 2 +- test/async/jvm/concurrent_ArrayIndexOutOfBoundIssue.scala | 2 +- test/async/jvm/concurrent_GenericTypeBoundaryIssue.scala | 2 +- test/async/jvm/concurrent_MatchEndIssue.scala | 2 +- test/async/jvm/concurrent_NegativeArraySizeException.scala | 2 +- test/async/jvm/concurrent_NegativeArraySizeExceptionFine1.scala | 2 +- test/async/jvm/concurrent_ReturnTupleIssue.scala | 2 +- test/async/jvm/concurrent_fetch.scala | 2 +- test/async/jvm/concurrent_patternAlternative.scala | 2 +- .../jvm/concurrent_patternAlternativeBothAnnotations.scala | 2 +- test/async/jvm/concurrent_polymorphicMethod.scala | 2 +- test/async/jvm/concurrent_shadowing.scala | 2 +- test/async/jvm/concurrent_shadowing0.scala | 2 +- test/async/jvm/concurrent_shadowing2.scala | 2 +- test/async/jvm/concurrent_shadowingRefinedTypes.scala | 2 +- test/async/jvm/concurrent_test0.scala | 2 +- test/async/jvm/exceptions.scala | 2 +- test/async/jvm/futures.scala | 2 +- test/async/jvm/hygiene.scala | 2 +- test/async/jvm/ifelse0.scala | 2 +- test/async/jvm/ifelse0_while.scala | 2 +- test/async/jvm/ifelse1.scala | 2 +- test/async/jvm/ifelse2.scala | 2 +- test/async/jvm/ifelse3.scala | 2 +- test/async/jvm/ifelse4.scala | 2 +- test/async/jvm/lazyval.scala | 2 +- test/async/jvm/live.scala | 2 +- test/async/jvm/localclasses.scala | 2 +- test/async/jvm/match0.scala | 2 +- test/async/jvm/nesteddef.scala | 2 +- test/async/jvm/noawait.scala | 2 +- test/async/jvm/stackoverflow.scala | 2 +- test/async/jvm/syncOptimization.scala | 2 +- test/async/jvm/toughtype.scala | 2 +- test/async/neg/ill-nested-await.scala | 2 +- test/async/neg/naked_await.scala | 2 +- test/async/neg/stark_naked_await.scala | 2 +- test/async/run/booleans.scala | 2 +- test/async/run/edge-cases.scala | 2 +- test/async/run/lambda.scala | 2 +- test/async/run/output.scala | 2 +- test/async/run/smoketest.scala | 2 +- test/async/run/string-switch-async.scala | 2 +- test/async/run/string-switch-bug.scala | 2 +- test/async/run/t12723.scala | 2 +- test/async/run/value-class.scala | 2 +- test/files/instrumented/inline-in-constructors/assert_1.scala | 2 +- test/files/instrumented/inline-in-constructors/bar_2.scala | 2 +- test/files/instrumented/inline-in-constructors/test_3.scala | 2 +- test/files/jvm/annotations/Test_2.scala | 2 +- test/files/jvm/deprecation/Test_1.scala | 2 +- test/files/jvm/nil-conversion/Foo_1.scala | 2 +- test/files/jvm/nil-conversion/Test.scala | 2 +- test/files/jvm/t10610.scala | 2 +- test/files/jvm/t7253/test.scala | 2 +- test/files/jvm/t8582.scala | 2 +- test/files/neg/FooMapView.scala | 2 +- test/files/neg/abstract-explaintypes.scala | 2 +- test/files/neg/abstract-inaccessible.scala | 2 +- test/files/neg/aladdin1055/Test_1.scala | 2 +- test/files/neg/and-future.scala | 2 +- test/files/neg/applydynamic_sip.scala | 2 +- test/files/neg/auto-application.scala | 2 +- test/files/neg/bad-advice.scala | 2 +- test/files/neg/badtok-1.scala | 2 +- test/files/neg/byname-implicit.scala | 2 +- test/files/neg/case-collision.scala | 2 +- test/files/neg/catch-all.scala | 2 +- test/files/neg/check-dead.scala | 2 +- test/files/neg/checksensible.scala | 2 +- test/files/neg/choices.scala | 2 +- test/files/neg/classOfDeprecation.scala | 2 +- test/files/neg/classmanifests_new_deprecations.scala | 2 +- test/files/neg/constructor-init-order.scala | 2 +- test/files/neg/cycle-bounds.scala | 2 +- test/files/neg/delayed-init-ref.scala | 2 +- test/files/neg/deprecated-annots.scala | 2 +- test/files/neg/deprecated-options.scala | 2 +- test/files/neg/deprecated_widening.scala | 2 +- test/files/neg/dotless-targs-a.scala | 2 +- test/files/neg/dotless-targs-b.scala | 2 +- test/files/neg/dotless-targs.scala | 2 +- test/files/neg/early-type-defs.scala | 2 +- test/files/neg/exhausting.scala | 2 +- test/files/neg/for-comprehension-old.scala | 2 +- test/files/neg/for-comprehension-val.scala | 2 +- test/files/neg/hk-existential-lb.scala | 2 +- test/files/neg/hk-typevar-unification.scala | 2 +- test/files/neg/i15552.scala | 2 +- test/files/neg/i17266.scala | 2 +- test/files/neg/i17266c.scala | 2 +- test/files/neg/implicit-ambiguous-invalid.scala | 2 +- test/files/neg/implicit-shadow.scala | 2 +- test/files/neg/implicitly-self.scala | 2 +- test/files/neg/import-future.scala | 2 +- test/files/neg/import-syntax.scala | 2 +- test/files/neg/infixed.scala | 2 +- test/files/neg/inlineIndyLambdaPrivate/Test_2.scala | 2 +- test/files/neg/iterable-ordering.scala | 2 +- test/files/neg/lint-int-div-to-float.scala | 2 +- test/files/neg/literals.scala | 2 +- test/files/neg/locally-x.scala | 2 +- test/files/neg/logImplicits.scala | 2 +- test/files/neg/macro-annot-not-expanded/Macros_1.scala | 2 +- test/files/neg/macro-annot-unused-param/Macros_1.scala | 2 +- test/files/neg/macro-annot-unused-param/Test_2.scala | 2 +- test/files/neg/macro-deprecate-idents.scala | 2 +- test/files/neg/macro-incompatible-macro-engine-a/Macros_2.scala | 2 +- test/files/neg/macro-incompatible-macro-engine-b/Macros_2.scala | 2 +- test/files/neg/macro-incompatible-macro-engine-b/Test_3.scala | 2 +- test/files/neg/macro-invalidret/Macros_Test_2.scala | 2 +- test/files/neg/main1.scala | 2 +- test/files/neg/main2.scala | 2 +- test/files/neg/maxerrs.scala | 2 +- test/files/neg/maxwarns.scala | 2 +- test/files/neg/multi-array.scala | 2 +- test/files/neg/names-defaults-neg-213.scala | 2 +- test/files/neg/names-defaults-neg-pu.scala | 2 +- test/files/neg/names-defaults-neg-warn.scala | 2 +- test/files/neg/names-defaults-neg.scala | 2 +- test/files/neg/nested-class-shadowing-removal.scala | 2 +- test/files/neg/nested-class-shadowing.scala | 2 +- test/files/neg/newpat_unreachable.scala | 2 +- test/files/neg/no-predef.scala | 2 +- test/files/neg/nonlocal-warning.scala | 2 +- test/files/neg/nonsense_eq_refine.scala | 2 +- test/files/neg/nonunit-if.scala | 2 +- test/files/neg/nonunit-statement.scala | 2 +- test/files/neg/nowarnMacros/Test_2.scala | 2 +- test/files/neg/nowarnPointPos.scala | 2 +- test/files/neg/nowarnRangePos.scala | 2 +- test/files/neg/nullary-override-3a.scala | 2 +- test/files/neg/nullary-override-3b.scala | 2 +- test/files/neg/nullary-override.scala | 2 +- test/files/neg/numeric-add-string-warning.scala | 2 +- test/files/neg/open-infix-future.scala | 2 +- test/files/neg/outer-ref-checks.scala | 2 +- test/files/neg/overloaded-implicit.scala | 2 +- test/files/neg/parens-for-params.scala | 2 +- test/files/neg/partestInvalidFlag.scala | 2 +- test/files/neg/pat_unreachable.scala | 2 +- test/files/neg/patmat-classtag-compound.scala | 2 +- test/files/neg/patmat-exprs-b.scala | 2 +- test/files/neg/patmat-sealed-reachable.scala | 2 +- test/files/neg/patmatexhaust.scala | 2 +- test/files/neg/permanent-blindness.scala | 2 +- test/files/neg/prefix-unary-nilary-deprecation.scala | 2 +- test/files/neg/prefix-unary-nilary-removal.scala | 2 +- test/files/neg/procedure-deprecation.scala | 2 +- test/files/neg/procedure-removal.scala | 2 +- test/files/neg/qmark-deprecated.scala | 2 +- test/files/neg/quickfix-silent.scala | 2 +- test/files/neg/recursive-method-default.scala | 2 +- test/files/neg/ref-checks.scala | 2 +- test/files/neg/scala3-keywords.scala | 2 +- test/files/neg/sd503.scala | 2 +- test/files/neg/sealed-final-neg.scala | 2 +- test/files/neg/sealed-java-enums.scala | 2 +- test/files/neg/sip23-uninitialized-1.scala | 2 +- test/files/neg/sip23-uninitialized-3.scala | 2 +- test/files/neg/stmt-expr-discard.scala | 2 +- test/files/neg/switch.scala | 2 +- test/files/neg/symbol-literal-deprecation.scala | 2 +- test/files/neg/t0903.scala | 2 +- test/files/neg/t10019.scala | 2 +- test/files/neg/t10068.scala | 2 +- test/files/neg/t10097.scala | 2 +- test/files/neg/t10097b.scala | 2 +- test/files/neg/t10270/Main_2.scala | 2 +- test/files/neg/t10296-after/Unused_2.scala | 2 +- test/files/neg/t10296-warn/Unused_2.scala | 2 +- test/files/neg/t10502.scala | 2 +- test/files/neg/t10678.scala | 2 +- test/files/neg/t10733.scala | 2 +- test/files/neg/t10752/Test_2.scala | 2 +- test/files/neg/t10763.scala | 2 +- test/files/neg/t10790.scala | 2 +- test/files/neg/t10806.scala | 2 +- test/files/neg/t10820-warn.scala | 2 +- test/files/neg/t10938.scala | 2 +- test/files/neg/t11012.scala | 2 +- test/files/neg/t11379a.scala | 2 +- test/files/neg/t11379b.scala | 2 +- test/files/neg/t11379c.scala | 2 +- test/files/neg/t11618.scala | 2 +- test/files/neg/t11643.scala | 2 +- test/files/neg/t11644a.scala | 2 +- test/files/neg/t11644b.scala | 2 +- test/files/neg/t11644c/s.scala | 2 +- test/files/neg/t11681.scala | 2 +- test/files/neg/t11690.scala | 2 +- test/files/neg/t11746.scala | 2 +- test/files/neg/t11758.scala | 2 +- test/files/neg/t11921-alias.scala | 2 +- test/files/neg/t11921.scala | 2 +- test/files/neg/t11921b.scala | 2 +- test/files/neg/t11921c.scala | 2 +- test/files/neg/t11938.scala | 2 +- test/files/neg/t11952.scala | 2 +- test/files/neg/t11952b.scala | 2 +- test/files/neg/t11962.scala | 2 +- test/files/neg/t12071.scala | 2 +- test/files/neg/t12134/sample_2.scala | 2 +- test/files/neg/t1215.scala | 2 +- test/files/neg/t12159c/s_2.scala | 2 +- test/files/neg/t12159d/t.scala | 2 +- test/files/neg/t12159e/t.scala | 2 +- test/files/neg/t12159f/t.scala | 2 +- test/files/neg/t12159g/t.scala | 2 +- test/files/neg/t12199.scala | 2 +- test/files/neg/t12237.scala | 2 +- test/files/neg/t1224.scala | 2 +- test/files/neg/t12240.scala | 2 +- test/files/neg/t12304.scala | 2 +- test/files/neg/t12326.scala | 2 +- test/files/neg/t12326b.scala | 2 +- test/files/neg/t12326c.scala | 2 +- test/files/neg/t12408.scala | 2 +- test/files/neg/t12414.scala | 2 +- test/files/neg/t12414b/b_2.scala | 2 +- test/files/neg/t12433.scala | 2 +- test/files/neg/t12441.scala | 2 +- test/files/neg/t12494.scala | 2 +- test/files/neg/t12495.scala | 2 +- test/files/neg/t12499.scala | 2 +- test/files/neg/t12513/predefer_2.scala | 2 +- test/files/neg/t12513b.scala | 2 +- test/files/neg/t12543.scala | 2 +- test/files/neg/t12565.scala | 2 +- test/files/neg/t12590.scala | 2 +- test/files/neg/t12591.scala | 2 +- test/files/neg/t12647/Macro_1.scala | 2 +- test/files/neg/t12647/Resolve_2.scala | 2 +- test/files/neg/t12647/Test_3.scala | 2 +- test/files/neg/t12648/LogConfig_2.scala | 2 +- test/files/neg/t12690b.scala | 2 +- test/files/neg/t12704.scala | 2 +- test/files/neg/t12720.scala | 2 +- test/files/neg/t12728.scala | 2 +- test/files/neg/t12735a.scala | 2 +- test/files/neg/t12735b.scala | 2 +- test/files/neg/t12735c.scala | 2 +- test/files/neg/t12770.scala | 2 +- test/files/neg/t12785.scala | 2 +- test/files/neg/t12799/Test_2.scala | 2 +- test/files/neg/t12800/matcher_1.scala | 2 +- test/files/neg/t12813b.scala | 2 +- test/files/neg/t12815.scala | 2 +- test/files/neg/t12816.scala | 2 +- test/files/neg/t12816b/B.scala | 2 +- test/files/neg/t12851b/C_2.scala | 2 +- test/files/neg/t12879/Test.scala | 2 +- test/files/neg/t1371.scala | 2 +- test/files/neg/t1503.scala | 2 +- test/files/neg/t1909-object.scala | 2 +- test/files/neg/t2442/t2442.scala | 2 +- test/files/neg/t2458/test.scala | 2 +- test/files/neg/t2458b/test.scala | 2 +- test/files/neg/t2458c/test.scala | 2 +- test/files/neg/t2462b.scala | 2 +- test/files/neg/t2462c.scala | 2 +- test/files/neg/t2796.scala | 2 +- test/files/neg/t2799.scala | 2 +- test/files/neg/t284.scala | 2 +- test/files/neg/t3098/a.scala | 2 +- test/files/neg/t3420b.scala | 2 +- test/files/neg/t3683a.scala | 2 +- test/files/neg/t3692-new.scala | 2 +- test/files/neg/t4302.scala | 2 +- test/files/neg/t4440.scala | 2 +- test/files/neg/t4691_exhaust_extractor.scala | 2 +- test/files/neg/t4701.scala | 2 +- test/files/neg/t4749.scala | 2 +- test/files/neg/t4762.scala | 2 +- test/files/neg/t4851/S.scala | 2 +- test/files/neg/t5182.scala | 2 +- test/files/neg/t5197.scala | 2 +- test/files/neg/t5265a.scala | 2 +- test/files/neg/t5265b.scala | 2 +- test/files/neg/t5352.scala | 2 +- test/files/neg/t5365.scala | 2 +- test/files/neg/t5365b.scala | 2 +- test/files/neg/t5365c.scala | 2 +- test/files/neg/t5365d.scala | 2 +- test/files/neg/t5365e.scala | 2 +- test/files/neg/t5426.scala | 2 +- test/files/neg/t5440.scala | 2 +- test/files/neg/t5507.scala | 2 +- test/files/neg/t5606.scala | 2 +- test/files/neg/t5606b.scala | 2 +- test/files/neg/t5663-badwarneq.scala | 2 +- test/files/neg/t5675.scala | 2 +- test/files/neg/t5689.scala | 2 +- test/files/neg/t5691.scala | 2 +- test/files/neg/t5715.scala | 2 +- test/files/neg/t5762.scala | 2 +- test/files/neg/t5830.scala | 2 +- test/files/neg/t5898.scala | 2 +- test/files/neg/t5956.scala | 2 +- test/files/neg/t6011.scala | 2 +- test/files/neg/t6048.scala | 2 +- test/files/neg/t6123-explaintypes-macros/BadMac_2.scala | 2 +- test/files/neg/t6123-explaintypes-macros/Macros.scala | 2 +- test/files/neg/t6159.scala | 2 +- test/files/neg/t6162-inheritance/defn.scala | 2 +- test/files/neg/t6162-overriding.scala | 2 +- test/files/neg/t6217.scala | 2 +- test/files/neg/t6217b.scala | 2 +- test/files/neg/t6217c.scala | 2 +- test/files/neg/t6264.scala | 2 +- test/files/neg/t6276.scala | 2 +- test/files/neg/t6446-additional/sample_2.scala | 2 +- test/files/neg/t6446-list/sample_2.scala | 2 +- test/files/neg/t6446-missing/sample_2.scala | 2 +- test/files/neg/t6446-show-phases.scala | 2 +- test/files/neg/t6534.scala | 2 +- test/files/neg/t6567.scala | 2 +- test/files/neg/t6582_exhaust_big.scala | 2 +- test/files/neg/t6595.scala | 2 +- test/files/neg/t6666.scala | 2 +- test/files/neg/t6666c.scala | 2 +- test/files/neg/t6675.scala | 2 +- test/files/neg/t6675b.scala | 2 +- test/files/neg/t6714.scala | 2 +- test/files/neg/t6902.scala | 2 +- test/files/neg/t7014/t7014_2.scala | 2 +- test/files/neg/t7020.scala | 2 +- test/files/neg/t7110.scala | 2 +- test/files/neg/t7171.scala | 2 +- test/files/neg/t7171b.scala | 2 +- test/files/neg/t7187-3.scala | 2 +- test/files/neg/t7187-deprecation.scala | 2 +- test/files/neg/t7187.scala | 2 +- test/files/neg/t7285.scala | 2 +- test/files/neg/t7290.scala | 2 +- test/files/neg/t7369.scala | 2 +- test/files/neg/t7494-after-terminal/sample_2.scala | 2 +- test/files/neg/t7494-before-parser/sample_2.scala | 2 +- test/files/neg/t7494-multi-right-after/sample_2.scala | 2 +- test/files/neg/t7494-no-options/sample_2.scala | 2 +- test/files/neg/t7494-right-after-before/sample_2.scala | 2 +- test/files/neg/t7494-right-after-terminal/sample_2.scala | 2 +- test/files/neg/t7622-cyclic-dependency/sample_2.scala | 2 +- test/files/neg/t7622-missing-dependency/sample_2.scala | 2 +- test/files/neg/t7622-missing-required.scala | 2 +- test/files/neg/t7622-multi-followers/sample_2.scala | 2 +- test/files/neg/t7623.scala | 2 +- test/files/neg/t7669.scala | 2 +- test/files/neg/t7721.scala | 2 +- test/files/neg/t7756b.scala | 2 +- test/files/neg/t7783.scala | 2 +- test/files/neg/t7848-interp-warn.scala | 2 +- test/files/neg/t7860.scala | 2 +- test/files/neg/t7984.scala | 2 +- test/files/neg/t8015-ffb.scala | 2 +- test/files/neg/t8178.scala | 2 +- test/files/neg/t8265.scala | 2 +- test/files/neg/t8417.scala | 2 +- test/files/neg/t8430.scala | 2 +- test/files/neg/t8450.scala | 2 +- test/files/neg/t8511.scala | 2 +- test/files/neg/t8525.scala | 2 +- test/files/neg/t8597.scala | 2 +- test/files/neg/t8597b.scala | 2 +- test/files/neg/t8610-arg.scala | 2 +- test/files/neg/t8610.scala | 2 +- test/files/neg/t8650.scala | 2 +- test/files/neg/t8650b.scala | 2 +- test/files/neg/t8685.scala | 2 +- test/files/neg/t8700a/Bar.scala | 2 +- test/files/neg/t8700b/Bar_2.scala | 2 +- test/files/neg/t8704.scala | 2 +- test/files/neg/t8731.scala | 2 +- test/files/neg/t8777.scala | 2 +- test/files/neg/t9127.scala | 2 +- test/files/neg/t9232.scala | 2 +- test/files/neg/t9398/match.scala | 2 +- test/files/neg/t9617/Test.scala | 2 +- test/files/neg/t9636.scala | 2 +- test/files/neg/t9675.scala | 2 +- test/files/neg/t9834.scala | 2 +- test/files/neg/t9847.scala | 2 +- test/files/neg/t9953.scala | 2 +- test/files/neg/trait_fields_deprecated_overriding.scala | 2 +- test/files/neg/unchecked-abstract.scala | 2 +- test/files/neg/unchecked-impossible.scala | 2 +- test/files/neg/unchecked-knowable.scala | 2 +- test/files/neg/unchecked-refinement.scala | 2 +- test/files/neg/unchecked-suppress.scala | 2 +- test/files/neg/unchecked.scala | 2 +- test/files/neg/unchecked2.scala | 2 +- test/files/neg/unchecked3.scala | 2 +- test/files/neg/unicode-arrows-deprecation.scala | 2 +- test/files/neg/unit-returns-value.scala | 2 +- test/files/neg/universal-lint.scala | 2 +- test/files/neg/unreachablechar.scala | 2 +- test/files/neg/unsafe.scala | 2 +- test/files/neg/unused.scala | 2 +- test/files/neg/value-discard.scala | 2 +- test/files/neg/varargs2.scala | 2 +- test/files/neg/variant-placeholders-future.scala | 2 +- test/files/neg/view-bounds-deprecation.scala | 2 +- test/files/neg/view-bounds-removal.scala | 2 +- test/files/neg/virtpatmat_exhaust_big.scala | 2 +- test/files/neg/virtpatmat_exhaust_compound.scala | 2 +- test/files/neg/virtpatmat_reach_null.scala | 2 +- test/files/neg/virtpatmat_reach_sealed_unsealed.scala | 2 +- test/files/neg/virtpatmat_unreach_select.scala | 2 +- test/files/neg/warn-inferred-any.scala | 2 +- test/files/neg/warn-unused-explicits.scala | 2 +- test/files/neg/warn-unused-implicits.scala | 2 +- .../files/neg/warn-unused-imports-b/warn-unused-imports_2.scala | 2 +- test/files/neg/warn-unused-imports/sample_1.scala | 2 +- test/files/neg/warn-unused-imports/warn-unused-imports_2.scala | 2 +- test/files/neg/warn-unused-locals.scala | 2 +- test/files/neg/warn-unused-params.scala | 2 +- test/files/neg/warn-unused-patvars.scala | 2 +- test/files/neg/warn-unused-privates.scala | 2 +- test/files/neg/warn-useless-svuid.scala | 2 +- test/files/neg/wconfSource1.scala | 2 +- test/files/neg/wconfSource2.scala | 2 +- test/files/neg/wildcards-future.scala | 2 +- test/files/neg/xlint-captured.scala | 2 +- test/files/neg/xml-parens.scala | 2 +- test/files/neg/yimports-custom-b/C_2.scala | 2 +- test/files/neg/yimports-custom-b/minidef_1.scala | 2 +- test/files/neg/yimports-custom/C_2.scala | 2 +- test/files/neg/yimports-masked/C_2.scala | 2 +- test/files/neg/yimports-nojava.scala | 2 +- test/files/neg/yimports-nosuch.scala | 2 +- test/files/neg/yimports-predef.scala | 2 +- test/files/neg/yimports-stable/C_2.scala | 2 +- test/files/pos/and-future.scala | 2 +- test/files/pos/annotated-outer.scala | 2 +- test/files/pos/auto-application.scala | 2 +- test/files/pos/byname-implicits-31/Main_2.scala | 2 +- test/files/pos/byname-implicits-32/Main_2.scala | 2 +- test/files/pos/byname-implicits-33/Main_2.scala | 2 +- test/files/pos/byname-implicits-34/Main_2.scala | 2 +- test/files/pos/case-object-add-serializable.scala | 2 +- test/files/pos/classtag-pos.scala | 2 +- test/files/pos/cycle/X_2.scala | 2 +- test/files/pos/debug-reset-local-attrs.scala | 2 +- test/files/pos/delambdafy_t6260_method.scala | 2 +- test/files/pos/dotless-targs-ranged.scala | 2 +- test/files/pos/dotless-targs.scala | 2 +- test/files/pos/exhaust_alternatives.scala | 2 +- test/files/pos/existential-slow-compile1.scala | 2 +- test/files/pos/existential-slow-compile2.scala | 2 +- test/files/pos/generic-sigs.scala | 2 +- test/files/pos/higherKinds.scala | 2 +- test/files/pos/hk-existential-subtype.scala | 2 +- test/files/pos/hkarray.scala | 2 +- test/files/pos/i11371.scala | 2 +- test/files/pos/ignore-wperf.scala | 2 +- test/files/pos/import-future.scala | 2 +- test/files/pos/inline-access-levels/A_1.scala | 2 +- test/files/pos/inline-access-levels/Test_2.scala | 2 +- test/files/pos/java-import-static-from-subclass/Test.scala | 2 +- test/files/pos/lazyref-autoapply.scala | 2 +- test/files/pos/macro-annot/t12366.scala | 2 +- .../files/pos/macro-deprecate-dont-touch-backquotedidents.scala | 2 +- test/files/pos/native-warning.scala | 2 +- test/files/pos/nonlocal-unchecked.scala | 2 +- test/files/pos/nullary-override-3.scala | 2 +- test/files/pos/open-infix-future.scala | 2 +- test/files/pos/package-ob-case/A_1.scala | 2 +- test/files/pos/package-ob-case/B_2.scala | 2 +- test/files/pos/parens-for-params-silent.scala | 2 +- test/files/pos/patmat-hk.scala | 2 +- test/files/pos/patmat-suppress.scala | 2 +- test/files/pos/patmat_list_rewrite.scala | 2 +- test/files/pos/polymorphic-case-class.scala | 2 +- test/files/pos/rangepos-anonapply.scala | 2 +- test/files/pos/rangepos-patmat.scala | 2 +- test/files/pos/rangepos.scala | 2 +- test/files/pos/setter-not-implicit.scala | 2 +- test/files/pos/skunky-expansion.scala | 2 +- test/files/pos/skunky.scala | 2 +- test/files/pos/t10093.scala | 2 +- test/files/pos/t10185.scala | 2 +- test/files/pos/t10195.scala | 2 +- test/files/pos/t10195b.scala | 2 +- test/files/pos/t10197.scala | 2 +- test/files/pos/t10213.scala | 2 +- test/files/pos/t10238.scala | 2 +- test/files/pos/t10270/Main_2.scala | 2 +- test/files/pos/t10288.scala | 2 +- test/files/pos/t10296-before/Unused_2.scala | 2 +- test/files/pos/t10296/Unused_2.scala | 2 +- test/files/pos/t10372.scala | 2 +- test/files/pos/t10373.scala | 2 +- test/files/pos/t10394.scala | 2 +- test/files/pos/t10502.scala | 2 +- test/files/pos/t10589-case-implicit-param/cc_2.scala | 2 +- test/files/pos/t10589-case-implicit-param/macros_1.scala | 2 +- test/files/pos/t10623.scala | 2 +- test/files/pos/t10643.scala | 2 +- test/files/pos/t10644/Objs_1.scala | 2 +- test/files/pos/t10644/Test_2.scala | 2 +- test/files/pos/t10680.scala | 2 +- test/files/pos/t10763.scala | 2 +- test/files/pos/t11303.scala | 2 +- test/files/pos/t11525.scala | 2 +- test/files/pos/t11534.scala | 2 +- test/files/pos/t11538.scala | 2 +- test/files/pos/t11603.scala | 2 +- test/files/pos/t11663/B_2.scala | 2 +- test/files/pos/t11681.scala | 2 +- test/files/pos/t11813.scala | 2 +- test/files/pos/t11856.scala | 2 +- test/files/pos/t11895.scala | 2 +- test/files/pos/t11917/Z.scala | 2 +- test/files/pos/t11921b.scala | 2 +- test/files/pos/t11921c.scala | 2 +- test/files/pos/t11952.scala | 2 +- test/files/pos/t11964.scala | 2 +- test/files/pos/t11966.scala | 2 +- test/files/pos/t12006.scala | 2 +- test/files/pos/t12159b/s_2.scala | 2 +- test/files/pos/t12186.scala | 2 +- test/files/pos/t12225.scala | 2 +- test/files/pos/t12240.scala | 2 +- test/files/pos/t12250.scala | 2 +- test/files/pos/t12250b.scala | 2 +- test/files/pos/t12254.scala | 2 +- test/files/pos/t12277.scala | 2 +- test/files/pos/t12304.scala | 2 +- test/files/pos/t12326.scala | 2 +- test/files/pos/t12326b.scala | 2 +- test/files/pos/t12392.scala | 2 +- test/files/pos/t12398.scala | 2 +- test/files/pos/t12398b.scala | 2 +- test/files/pos/t12554.scala | 2 +- test/files/pos/t12554b/s_2.scala | 2 +- test/files/pos/t12600.scala | 2 +- test/files/pos/t12645/Macro_1.scala | 2 +- test/files/pos/t12645/Test_2.scala | 2 +- test/files/pos/t12645b/Test_2.scala | 2 +- test/files/pos/t12645b/macro_1.scala | 2 +- test/files/pos/t12646.scala | 2 +- test/files/pos/t12647/Macro_1.scala | 2 +- test/files/pos/t12647/Resolve_2.scala | 2 +- test/files/pos/t12647/Test_3.scala | 2 +- test/files/pos/t12671.scala | 2 +- test/files/pos/t12712.scala | 2 +- test/files/pos/t12787.scala | 2 +- test/files/pos/t12792.scala | 2 +- test/files/pos/t12800/matcher_1.scala | 2 +- test/files/pos/t12812.scala | 2 +- test/files/pos/t12830.scala | 2 +- test/files/pos/t12851/C_2.scala | 2 +- test/files/pos/t12858/B.scala | 2 +- test/files/pos/t1439.scala | 2 +- test/files/pos/t2030.scala | 2 +- test/files/pos/t2799.scala | 2 +- test/files/pos/t3234.scala | 2 +- test/files/pos/t3368.scala | 2 +- test/files/pos/t3420.scala | 2 +- test/files/pos/t3420b.scala | 2 +- test/files/pos/t3495.scala | 2 +- test/files/pos/t3960.scala | 2 +- test/files/pos/t3995.scala | 2 +- test/files/pos/t4020.scala | 2 +- test/files/pos/t4225.scala | 2 +- test/files/pos/t4225b.scala | 2 +- test/files/pos/t4225c.scala | 2 +- test/files/pos/t4494.scala | 2 +- test/files/pos/t4649.scala | 2 +- test/files/pos/t4744/Bar.scala | 2 +- test/files/pos/t4840.scala | 2 +- test/files/pos/t4911.scala | 2 +- test/files/pos/t5029.scala | 2 +- test/files/pos/t5165b/TestObject_3.scala | 2 +- test/files/pos/t5165b/TestTrait_2.scala | 2 +- test/files/pos/t5175.scala | 2 +- test/files/pos/t5265a.scala | 2 +- test/files/pos/t5365-nonStrict.scala | 2 +- test/files/pos/t5542.scala | 2 +- test/files/pos/t5809.scala | 2 +- test/files/pos/t5818.scala | 2 +- test/files/pos/t5897.scala | 2 +- test/files/pos/t5899.scala | 2 +- test/files/pos/t5930.scala | 2 +- test/files/pos/t5932.scala | 2 +- test/files/pos/t5946.scala | 2 +- test/files/pos/t5954c/A_1.scala | 2 +- test/files/pos/t5954c/B_2.scala | 2 +- test/files/pos/t5954d/A_1.scala | 2 +- test/files/pos/t5954d/B_2.scala | 2 +- test/files/pos/t5968.scala | 2 +- test/files/pos/t6008.scala | 2 +- test/files/pos/t6022.scala | 2 +- test/files/pos/t6091.scala | 2 +- test/files/pos/t6123-explaintypes-implicits.scala | 2 +- test/files/pos/t6146.scala | 2 +- test/files/pos/t6159.scala | 2 +- test/files/pos/t6162-inheritance.scala | 2 +- test/files/pos/t6210.scala | 2 +- test/files/pos/t6217.scala | 2 +- test/files/pos/t6260.scala | 2 +- test/files/pos/t6275.scala | 2 +- test/files/pos/t6450.scala | 2 +- test/files/pos/t6537.scala | 2 +- test/files/pos/t6675.scala | 2 +- test/files/pos/t6771.scala | 2 +- test/files/pos/t6891.scala | 2 +- test/files/pos/t6896.scala | 2 +- test/files/pos/t6942/t6942.scala | 2 +- test/files/pos/t6978/S.scala | 2 +- test/files/pos/t6994.scala | 2 +- test/files/pos/t7011.scala | 2 +- test/files/pos/t7183.scala | 2 +- test/files/pos/t7232/Test.scala | 2 +- test/files/pos/t7232b/Test.scala | 2 +- test/files/pos/t7232c/Test.scala | 2 +- test/files/pos/t7232d/Test.scala | 2 +- test/files/pos/t7232e/Test.scala | 2 +- test/files/pos/t7232g/Test.scala | 2 +- test/files/pos/t7285a.scala | 2 +- test/files/pos/t7315.scala | 2 +- test/files/pos/t7369.scala | 2 +- test/files/pos/t7427.scala | 2 +- test/files/pos/t7433.scala | 2 +- test/files/pos/t7481.scala | 2 +- test/files/pos/t7551/T_1.scala | 2 +- test/files/pos/t7551/Test_2.scala | 2 +- test/files/pos/t7649.scala | 2 +- test/files/pos/t7683-stop-after-parser/sample_2.scala | 2 +- test/files/pos/t7707.scala | 2 +- test/files/pos/t7750.scala | 2 +- test/files/pos/t7864.scala | 2 +- test/files/pos/t8001/Test_2.scala | 2 +- test/files/pos/t8040.scala | 2 +- test/files/pos/t8064/Client_2.scala | 2 +- test/files/pos/t8064/Macro_1.scala | 2 +- test/files/pos/t8064b/Client_2.scala | 2 +- test/files/pos/t8064b/Macro_1.scala | 2 +- test/files/pos/t8121/B_2.scala | 2 +- test/files/pos/t8363.scala | 2 +- test/files/pos/t8410.scala | 2 +- test/files/pos/t8523.scala | 2 +- test/files/pos/t8546.scala | 2 +- test/files/pos/t8578.scala | 2 +- test/files/pos/t8596.scala | 2 +- test/files/pos/t8602.scala | 2 +- test/files/pos/t8617.scala | 2 +- test/files/pos/t8736-b.scala | 2 +- test/files/pos/t8736.scala | 2 +- test/files/pos/t8781/Test_2.scala | 2 +- test/files/pos/t8828.scala | 2 +- test/files/pos/t8861.scala | 2 +- test/files/pos/t8934a/Test_2.scala | 2 +- test/files/pos/t8954/t1.scala | 2 +- test/files/pos/t8954/t2.scala | 2 +- test/files/pos/t8965.scala | 2 +- test/files/pos/t8999.scala | 2 +- test/files/pos/t9020.scala | 2 +- test/files/pos/t9111-inliner-workaround/Test_1.scala | 2 +- test/files/pos/t9220.scala | 2 +- test/files/pos/t9285.scala | 2 +- test/files/pos/t9369.scala | 2 +- test/files/pos/t9370/sample_2.scala | 2 +- test/files/pos/t9399.scala | 2 +- test/files/pos/t9411a.scala | 2 +- test/files/pos/t9411b.scala | 2 +- test/files/pos/t9490.scala | 2 +- test/files/pos/t9630/t9630b.scala | 2 +- test/files/pos/t9657.scala | 2 +- test/files/pos/t9717.scala | 2 +- test/files/pos/unchecked-a.scala | 2 +- test/files/pos/unsafe.scala | 2 +- test/files/pos/value-class-override-no-spec.scala | 2 +- test/files/pos/varargs-future.scala | 2 +- test/files/pos/variant-placeholders-future.scala | 2 +- test/files/pos/virtpatmat_exhaust_unchecked.scala | 2 +- test/files/pos/warn-unused-params-not-implicits.scala | 2 +- test/files/pos/xlint1.scala | 2 +- test/files/pos/xml-attributes.scala | 2 +- test/files/pos/xml-comments.scala | 2 +- test/files/pos/xml-entityref.scala | 2 +- test/files/pos/xml-interpolation.scala | 2 +- test/files/pos/xml-match.scala | 2 +- test/files/pos/xml-nodebuffer.scala | 2 +- test/files/pos/xml-ns-empty.scala | 2 +- test/files/pos/xml-ns-text.scala | 2 +- test/files/pos/xml-ns.scala | 2 +- test/files/pos/xml-pcdata.scala | 2 +- test/files/pos/xml-procinstr.scala | 2 +- test/files/pos/xml-quasiquote.scala | 2 +- test/files/pos/xml-xmlns.scala | 2 +- test/files/pos/yimports-pkgobj/C_2.scala | 2 +- test/files/pos/yimports-pkgobj/minidef_1.scala | 2 +- test/files/pos/z1730.scala | 2 +- test/files/presentation/doc/doc.scala | 2 +- test/files/run/abstype_implicits.scala | 2 +- test/files/run/applydynamic_sip.scala | 2 +- test/files/run/bcodeInlinerMixed/B_1.scala | 2 +- test/files/run/bcodeInlinerMixed/Test_2.scala | 2 +- test/files/run/bugs.scala | 2 +- test/files/run/checked.scala | 2 +- test/files/run/checkinit.scala | 2 +- test/files/run/ctor-order.scala | 2 +- test/files/run/defaults-serizaliable-no-forwarders.scala | 2 +- test/files/run/delambdafy-dependent-on-param-subst.scala | 2 +- test/files/run/delay-bad.scala | 2 +- test/files/run/delay-good.scala | 2 +- test/files/run/deprecate-early-type-defs.scala | 2 +- test/files/run/disable-assertions.scala | 2 +- test/files/run/dotty-i11332b.scala | 2 +- test/files/run/dotty-t12348.scala | 2 +- test/files/run/elidable-opt.scala | 2 +- test/files/run/elidable.scala | 2 +- test/files/run/hk-typevar-unification.scala | 2 +- test/files/run/inline-stack-map-frames/A_1.scala | 2 +- test/files/run/inline-stack-map-frames/Test_2.scala | 2 +- test/files/run/inner-obj-auto.scala | 2 +- test/files/run/interop_typetags_are_manifests.scala | 2 +- test/files/run/is-valid-num.scala | 2 +- test/files/run/iterableonce-deprecations.scala | 2 +- test/files/run/lazy-locals.scala | 2 +- test/files/run/literals.scala | 2 +- .../files/run/macro-expand-implicit-macro-is-view/Impls_1.scala | 2 +- .../run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala | 2 +- test/files/run/macro-openmacros/Impls_Macros_1.scala | 2 +- test/files/run/macro-openmacros/Test_2.scala | 2 +- test/files/run/macro-parse-position/Impls_Macros_1.scala | 2 +- test/files/run/macro-parse-position/Test_2.scala | 2 +- test/files/run/macro-rangepos-subpatterns/Macros_1.scala | 2 +- test/files/run/macro-rangepos-subpatterns/Test_2.scala | 2 +- test/files/run/macro-settings/Test_2.scala | 2 +- .../run/macro-term-declared-in-anonymous/Macros_Test_2.scala | 2 +- .../run/macro-term-declared-in-refinement/Macros_Test_2.scala | 2 +- test/files/run/macro-vampire-false-warning/Macros_1.scala | 2 +- test/files/run/macro-vampire-false-warning/Test_2.scala | 2 +- test/files/run/macroPlugins-enterStats.scala | 2 +- test/files/run/macroPlugins-isBlackbox/Test_3.scala | 2 +- test/files/run/macroPlugins-macroArgs/Test_3.scala | 2 +- test/files/run/macroPlugins-macroExpand/Test_3.scala | 2 +- test/files/run/macroPlugins-macroRuntime/Test_3.scala | 2 +- test/files/run/macroPlugins-typedMacroBody/Macros_2.scala | 2 +- test/files/run/macroPlugins-typedMacroBody/Plugin_1.scala | 2 +- test/files/run/macroPlugins-typedMacroBody/Test_3.scala | 2 +- test/files/run/manifests-undeprecated-in-2.10.0.scala | 2 +- test/files/run/module-serialization-proxy-class-unload.scala | 2 +- test/files/run/name-based-patmat.scala | 2 +- test/files/run/names-defaults.scala | 2 +- test/files/run/nonlocalreturn.scala | 2 +- test/files/run/nothingTypeDce.scala | 2 +- test/files/run/patmat-exprs.scala | 2 +- test/files/run/patmat-mix-case-extractor.scala | 2 +- test/files/run/patmatnew.scala | 2 +- test/files/run/primitive-sigs-2-new.scala | 2 +- test/files/run/primitive-sigs-2-old.scala | 2 +- test/files/run/pure-warning-post-macro/test_2.scala | 2 +- test/files/run/reflection-valueclasses-magic.scala | 2 +- test/files/run/sequenceComparisons.scala | 2 +- test/files/run/sip23-rangepos.scala | 2 +- test/files/run/string-switch.scala | 2 +- test/files/run/synchronized.scala | 2 +- test/files/run/t10283.scala | 2 +- test/files/run/t10439.scala | 2 +- test/files/run/t10539.scala | 2 +- test/files/run/t10692.scala | 2 +- test/files/run/t11042.scala | 2 +- test/files/run/t11255/A_1.scala | 2 +- test/files/run/t11255/Test_2.scala | 2 +- test/files/run/t11534c.scala | 2 +- test/files/run/t1167.scala | 2 +- test/files/run/t11938.scala | 2 +- test/files/run/t12348.scala | 2 +- test/files/run/t12799/Test_2.scala | 2 +- test/files/run/t1980.scala | 2 +- test/files/run/t1987.scala | 2 +- test/files/run/t2106.scala | 2 +- test/files/run/t2318.scala | 2 +- test/files/run/t3038b.scala | 2 +- test/files/run/t3038d.scala | 2 +- test/files/run/t3194.scala | 2 +- test/files/run/t3220-213.scala | 2 +- test/files/run/t3235-minimal.scala | 2 +- test/files/run/t3326.scala | 2 +- test/files/run/t3509.scala | 2 +- test/files/run/t3569.scala | 2 +- test/files/run/t3895.scala | 2 +- test/files/run/t3897/a_1.scala | 2 +- test/files/run/t3897/a_2.scala | 2 +- test/files/run/t4072.scala | 2 +- test/files/run/t4225d.scala | 2 +- test/files/run/t4225e.scala | 2 +- test/files/run/t4285.scala | 2 +- test/files/run/t4317/S_1.scala | 2 +- test/files/run/t4317/S_3.scala | 2 +- test/files/run/t4536.scala | 2 +- test/files/run/t4742.scala | 2 +- test/files/run/t4935.scala | 2 +- test/files/run/t5040.scala | 2 +- test/files/run/t5568.scala | 2 +- test/files/run/t5648.scala | 2 +- test/files/run/t5704.scala | 2 +- test/files/run/t5830.scala | 2 +- test/files/run/t5857.scala | 2 +- test/files/run/t5903a/Macros_1.scala | 2 +- test/files/run/t5903a/Test_2.scala | 2 +- test/files/run/t5903c/Macros_1.scala | 2 +- test/files/run/t5903c/Test_2.scala | 2 +- test/files/run/t5903d/Macros_1.scala | 2 +- test/files/run/t5903d/Test_2.scala | 2 +- test/files/run/t5905-features.scala | 2 +- test/files/run/t6102.scala | 2 +- test/files/run/t6146b.scala | 2 +- test/files/run/t6188.scala | 2 +- test/files/run/t6327.scala | 2 +- test/files/run/t6541.scala | 2 +- test/files/run/t657.scala | 2 +- test/files/run/t6663.scala | 2 +- test/files/run/t6677b.scala | 2 +- test/files/run/t6714.scala | 2 +- test/files/run/t6731.scala | 2 +- test/files/run/t7341.scala | 2 +- test/files/run/t744.scala | 2 +- test/files/run/t7448.scala | 2 +- test/files/run/t7459b-optimize.scala | 2 +- test/files/run/t7582/InlineHolder_2.scala | 2 +- test/files/run/t7582b/InlineHolder_2.scala | 2 +- test/files/run/t7584.scala | 2 +- test/files/run/t7974/Test.scala | 2 +- test/files/run/t8017/value-class-lambda.scala | 2 +- test/files/run/t8570.scala | 2 +- test/files/run/t8570a.scala | 2 +- test/files/run/t8601-closure-elim.scala | 2 +- test/files/run/t8601.scala | 2 +- test/files/run/t8601b.scala | 2 +- test/files/run/t8601c.scala | 2 +- test/files/run/t8601d.scala | 2 +- test/files/run/t8601e/Test.scala | 2 +- test/files/run/t8610.scala | 2 +- test/files/run/t8611a.scala | 2 +- test/files/run/t8611b.scala | 2 +- test/files/run/t8611c.scala | 2 +- test/files/run/t8888.scala | 2 +- test/files/run/t9003.scala | 2 +- test/files/run/t9029.scala | 2 +- test/files/run/t9403/C_1.scala | 2 +- test/files/run/t9403/Test_2.scala | 2 +- test/files/run/t9656.scala | 2 +- test/files/run/virtpatmat_extends_product.scala | 2 +- test/files/run/virtpatmat_nested_lists.scala | 2 +- test/files/run/virtpatmat_opt_sharing.scala | 2 +- test/files/run/virtpatmat_typetag.scala | 2 +- test/files/run/wacky-value-classes.scala | 2 +- 856 files changed, 856 insertions(+), 856 deletions(-) diff --git a/test/async/jvm/anf.scala b/test/async/jvm/anf.scala index 63e6aa8053c..357651fc70f 100644 --- a/test/async/jvm/anf.scala +++ b/test/async/jvm/anf.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.anf.AnfTransformSpec]) diff --git a/test/async/jvm/await0.scala b/test/async/jvm/await0.scala index 896b9aaf04e..fb412b73fc6 100644 --- a/test/async/jvm/await0.scala +++ b/test/async/jvm/await0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.await0.Await0Spec]) diff --git a/test/async/jvm/block0.scala b/test/async/jvm/block0.scala index b5192a684bb..f485ea05fdc 100644 --- a/test/async/jvm/block0.scala +++ b/test/async/jvm/block0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.block0.AsyncSpec]) diff --git a/test/async/jvm/block1.scala b/test/async/jvm/block1.scala index 5a4cd0e14c2..0fd42105656 100644 --- a/test/async/jvm/block1.scala +++ b/test/async/jvm/block1.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.block1.Block1Spec]) diff --git a/test/async/jvm/completable-future.scala b/test/async/jvm/completable-future.scala index dd2b5538b31..6d702d508e2 100644 --- a/test/async/jvm/completable-future.scala +++ b/test/async/jvm/completable-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import java.util.concurrent._ import scala.tools.partest.async.CompletableFutureAwait._ diff --git a/test/async/jvm/concurrent_AfterRefchecksIssue.scala b/test/async/jvm/concurrent_AfterRefchecksIssue.scala index e91af0b7924..1113bbbd29f 100644 --- a/test/async/jvm/concurrent_AfterRefchecksIssue.scala +++ b/test/async/jvm/concurrent_AfterRefchecksIssue.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._, ExecutionContext.Implicits.global, scala.tools.testkit.async.Async._ diff --git a/test/async/jvm/concurrent_ArrayIndexOutOfBoundIssue.scala b/test/async/jvm/concurrent_ArrayIndexOutOfBoundIssue.scala index c760607568d..b1017e8f94e 100644 --- a/test/async/jvm/concurrent_ArrayIndexOutOfBoundIssue.scala +++ b/test/async/jvm/concurrent_ArrayIndexOutOfBoundIssue.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_GenericTypeBoundaryIssue.scala b/test/async/jvm/concurrent_GenericTypeBoundaryIssue.scala index 83cc4a3d2e2..a63fe07cfdd 100644 --- a/test/async/jvm/concurrent_GenericTypeBoundaryIssue.scala +++ b/test/async/jvm/concurrent_GenericTypeBoundaryIssue.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import Test.test diff --git a/test/async/jvm/concurrent_MatchEndIssue.scala b/test/async/jvm/concurrent_MatchEndIssue.scala index bd37b24f361..055fd125ead 100644 --- a/test/async/jvm/concurrent_MatchEndIssue.scala +++ b/test/async/jvm/concurrent_MatchEndIssue.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_NegativeArraySizeException.scala b/test/async/jvm/concurrent_NegativeArraySizeException.scala index 9cda7fa26d8..58960561fb2 100644 --- a/test/async/jvm/concurrent_NegativeArraySizeException.scala +++ b/test/async/jvm/concurrent_NegativeArraySizeException.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_NegativeArraySizeExceptionFine1.scala b/test/async/jvm/concurrent_NegativeArraySizeExceptionFine1.scala index 20a7325838e..1c3ddc9f4a3 100644 --- a/test/async/jvm/concurrent_NegativeArraySizeExceptionFine1.scala +++ b/test/async/jvm/concurrent_NegativeArraySizeExceptionFine1.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_ReturnTupleIssue.scala b/test/async/jvm/concurrent_ReturnTupleIssue.scala index 9f8d52949d6..61c3495a7bf 100644 --- a/test/async/jvm/concurrent_ReturnTupleIssue.scala +++ b/test/async/jvm/concurrent_ReturnTupleIssue.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_fetch.scala b/test/async/jvm/concurrent_fetch.scala index 126dd920443..c25214709ec 100644 --- a/test/async/jvm/concurrent_fetch.scala +++ b/test/async/jvm/concurrent_fetch.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent.{Await, Future, duration} import scala.concurrent.ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_patternAlternative.scala b/test/async/jvm/concurrent_patternAlternative.scala index f85aef1e9ef..8ccfd05f005 100644 --- a/test/async/jvm/concurrent_patternAlternative.scala +++ b/test/async/jvm/concurrent_patternAlternative.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_patternAlternativeBothAnnotations.scala b/test/async/jvm/concurrent_patternAlternativeBothAnnotations.scala index b94a8bad432..61e8bfb9a93 100644 --- a/test/async/jvm/concurrent_patternAlternativeBothAnnotations.scala +++ b/test/async/jvm/concurrent_patternAlternativeBothAnnotations.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_polymorphicMethod.scala b/test/async/jvm/concurrent_polymorphicMethod.scala index 13543621dae..c74160a8c05 100644 --- a/test/async/jvm/concurrent_polymorphicMethod.scala +++ b/test/async/jvm/concurrent_polymorphicMethod.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_shadowing.scala b/test/async/jvm/concurrent_shadowing.scala index 8918096d4da..9e959911fe4 100644 --- a/test/async/jvm/concurrent_shadowing.scala +++ b/test/async/jvm/concurrent_shadowing.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_shadowing0.scala b/test/async/jvm/concurrent_shadowing0.scala index f1593831be9..e708eb44d16 100644 --- a/test/async/jvm/concurrent_shadowing0.scala +++ b/test/async/jvm/concurrent_shadowing0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_shadowing2.scala b/test/async/jvm/concurrent_shadowing2.scala index 65fa05e086a..3a02f0b2db9 100644 --- a/test/async/jvm/concurrent_shadowing2.scala +++ b/test/async/jvm/concurrent_shadowing2.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_shadowingRefinedTypes.scala b/test/async/jvm/concurrent_shadowingRefinedTypes.scala index 79c96e09e76..5264923c9fb 100644 --- a/test/async/jvm/concurrent_shadowingRefinedTypes.scala +++ b/test/async/jvm/concurrent_shadowingRefinedTypes.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/jvm/concurrent_test0.scala b/test/async/jvm/concurrent_test0.scala index 772c25826b2..24dd770474d 100644 --- a/test/async/jvm/concurrent_test0.scala +++ b/test/async/jvm/concurrent_test0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync /* * Scala (https://www.scala-lang.org) diff --git a/test/async/jvm/exceptions.scala b/test/async/jvm/exceptions.scala index 59ae91f28a6..22908defa1a 100644 --- a/test/async/jvm/exceptions.scala +++ b/test/async/jvm/exceptions.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.exceptions.ExceptionsSpec]) diff --git a/test/async/jvm/futures.scala b/test/async/jvm/futures.scala index 55ebd4c8a6b..cc871fb056a 100644 --- a/test/async/jvm/futures.scala +++ b/test/async/jvm/futures.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync -deprecation +//> using options -Xasync -deprecation object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.futures.FutureSpec]) diff --git a/test/async/jvm/hygiene.scala b/test/async/jvm/hygiene.scala index debee49bffc..39cb86c1176 100644 --- a/test/async/jvm/hygiene.scala +++ b/test/async/jvm/hygiene.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.hygiene.HygieneSpec]) diff --git a/test/async/jvm/ifelse0.scala b/test/async/jvm/ifelse0.scala index 138ee0a57e6..e81a026e53b 100644 --- a/test/async/jvm/ifelse0.scala +++ b/test/async/jvm/ifelse0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse0.IfElseSpec]) diff --git a/test/async/jvm/ifelse0_while.scala b/test/async/jvm/ifelse0_while.scala index 64d07fde62d..a5cce1445e3 100644 --- a/test/async/jvm/ifelse0_while.scala +++ b/test/async/jvm/ifelse0_while.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse0.WhileSpec]) diff --git a/test/async/jvm/ifelse1.scala b/test/async/jvm/ifelse1.scala index 86e6cc57ef9..104cf20ce32 100644 --- a/test/async/jvm/ifelse1.scala +++ b/test/async/jvm/ifelse1.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse1.IfElse1Spec]) diff --git a/test/async/jvm/ifelse2.scala b/test/async/jvm/ifelse2.scala index 12e8bd5a7b8..a65ed71ad45 100644 --- a/test/async/jvm/ifelse2.scala +++ b/test/async/jvm/ifelse2.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse2.IfElse2Spec]) diff --git a/test/async/jvm/ifelse3.scala b/test/async/jvm/ifelse3.scala index 0eaeb8f5ea0..5f455d7bbfe 100644 --- a/test/async/jvm/ifelse3.scala +++ b/test/async/jvm/ifelse3.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse3.IfElse3Spec]) diff --git a/test/async/jvm/ifelse4.scala b/test/async/jvm/ifelse4.scala index b32a5de26ba..4fd1ff98292 100644 --- a/test/async/jvm/ifelse4.scala +++ b/test/async/jvm/ifelse4.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.ifelse4.IfElse4Spec]) diff --git a/test/async/jvm/lazyval.scala b/test/async/jvm/lazyval.scala index d52f7e27582..414edd6c531 100644 --- a/test/async/jvm/lazyval.scala +++ b/test/async/jvm/lazyval.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.lazyval.LazyValSpec]) diff --git a/test/async/jvm/live.scala b/test/async/jvm/live.scala index 18fb9245bc1..7ef1e9bd0a0 100644 --- a/test/async/jvm/live.scala +++ b/test/async/jvm/live.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.live.LiveVariablesSpec]) diff --git a/test/async/jvm/localclasses.scala b/test/async/jvm/localclasses.scala index 9bafc634d07..c0fb5d25105 100644 --- a/test/async/jvm/localclasses.scala +++ b/test/async/jvm/localclasses.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.neg.LocalClasses0Spec]) diff --git a/test/async/jvm/match0.scala b/test/async/jvm/match0.scala index 9916df5edda..566227e38d1 100644 --- a/test/async/jvm/match0.scala +++ b/test/async/jvm/match0.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.match0.MatchSpec]) diff --git a/test/async/jvm/nesteddef.scala b/test/async/jvm/nesteddef.scala index 42e1763bdfc..656797e991c 100644 --- a/test/async/jvm/nesteddef.scala +++ b/test/async/jvm/nesteddef.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.nesteddef.NestedDef]) diff --git a/test/async/jvm/noawait.scala b/test/async/jvm/noawait.scala index dbcc03ac366..788984fd8d5 100644 --- a/test/async/jvm/noawait.scala +++ b/test/async/jvm/noawait.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.noawait.NoAwaitSpec]) diff --git a/test/async/jvm/stackoverflow.scala b/test/async/jvm/stackoverflow.scala index f1395194a9f..6708575d312 100644 --- a/test/async/jvm/stackoverflow.scala +++ b/test/async/jvm/stackoverflow.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import scala.concurrent.duration._ diff --git a/test/async/jvm/syncOptimization.scala b/test/async/jvm/syncOptimization.scala index a6fc3392c4d..4d23ea34823 100644 --- a/test/async/jvm/syncOptimization.scala +++ b/test/async/jvm/syncOptimization.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.testkit.async.Async._ import scala.concurrent._ diff --git a/test/async/jvm/toughtype.scala b/test/async/jvm/toughtype.scala index 9587afa35f1..3be405cdbfa 100644 --- a/test/async/jvm/toughtype.scala +++ b/test/async/jvm/toughtype.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.toughtype.ToughTypeSpec]) diff --git a/test/async/neg/ill-nested-await.scala b/test/async/neg/ill-nested-await.scala index dc2a0f93a4f..aacee1e7ac9 100644 --- a/test/async/neg/ill-nested-await.scala +++ b/test/async/neg/ill-nested-await.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global diff --git a/test/async/neg/naked_await.scala b/test/async/neg/naked_await.scala index 31833df14c9..13333d11615 100644 --- a/test/async/neg/naked_await.scala +++ b/test/async/neg/naked_await.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.testkit.async.Async._ import scala.concurrent.{ExecutionContext, Future} diff --git a/test/async/neg/stark_naked_await.scala b/test/async/neg/stark_naked_await.scala index 7025061eafc..11970557b7c 100644 --- a/test/async/neg/stark_naked_await.scala +++ b/test/async/neg/stark_naked_await.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.testkit.async.Async._ import scala.concurrent.{ExecutionContext, Future} diff --git a/test/async/run/booleans.scala b/test/async/run/booleans.scala index fe9df0b8ca8..f5c74607f59 100644 --- a/test/async/run/booleans.scala +++ b/test/async/run/booleans.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/edge-cases.scala b/test/async/run/edge-cases.scala index 4306570dc60..ab244c239a6 100644 --- a/test/async/run/edge-cases.scala +++ b/test/async/run/edge-cases.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/lambda.scala b/test/async/run/lambda.scala index 2f23500d581..455efc8af90 100644 --- a/test/async/run/lambda.scala +++ b/test/async/run/lambda.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ //import org.junit.Assert._ diff --git a/test/async/run/output.scala b/test/async/run/output.scala index 4324eae15b9..a61332f768e 100644 --- a/test/async/run/output.scala +++ b/test/async/run/output.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.{OutputAwait, Output} import scala.collection.immutable diff --git a/test/async/run/smoketest.scala b/test/async/run/smoketest.scala index 1a1858988c8..f31c4644560 100644 --- a/test/async/run/smoketest.scala +++ b/test/async/run/smoketest.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/string-switch-async.scala b/test/async/run/string-switch-async.scala index 466f7e3abac..f907e0b5a34 100644 --- a/test/async/run/string-switch-async.scala +++ b/test/async/run/string-switch-async.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/string-switch-bug.scala b/test/async/run/string-switch-bug.scala index daa0020925d..28fb8889c50 100644 --- a/test/async/run/string-switch-bug.scala +++ b/test/async/run/string-switch-bug.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/t12723.scala b/test/async/run/t12723.scala index 473e89a63fa..0c8e0796999 100644 --- a/test/async/run/t12723.scala +++ b/test/async/run/t12723.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync -Werror -Wnonunit-statement +//> using options -Xasync -Werror -Wnonunit-statement import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/async/run/value-class.scala b/test/async/run/value-class.scala index d50bd24422b..0fd3d81f8b5 100644 --- a/test/async/run/value-class.scala +++ b/test/async/run/value-class.scala @@ -1,4 +1,4 @@ -// scalac: -Xasync +//> using options -Xasync import scala.tools.partest.async.OptionAwait._ import org.junit.Assert._ diff --git a/test/files/instrumented/inline-in-constructors/assert_1.scala b/test/files/instrumented/inline-in-constructors/assert_1.scala index 9c055a49475..0ab3c404777 100644 --- a/test/files/instrumented/inline-in-constructors/assert_1.scala +++ b/test/files/instrumented/inline-in-constructors/assert_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt package instrumented object MyPredef { diff --git a/test/files/instrumented/inline-in-constructors/bar_2.scala b/test/files/instrumented/inline-in-constructors/bar_2.scala index 7a4c4504b89..b67ea9f2f90 100644 --- a/test/files/instrumented/inline-in-constructors/bar_2.scala +++ b/test/files/instrumented/inline-in-constructors/bar_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** package instrumented /** Class that uses assert compiled in previous compiler run so we check if diff --git a/test/files/instrumented/inline-in-constructors/test_3.scala b/test/files/instrumented/inline-in-constructors/test_3.scala index 00fbf8bd5d4..d4e6cd6fe71 100644 --- a/test/files/instrumented/inline-in-constructors/test_3.scala +++ b/test/files/instrumented/inline-in-constructors/test_3.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt import scala.tools.partest.instrumented.Instrumentation._ import instrumented._ diff --git a/test/files/jvm/annotations/Test_2.scala b/test/files/jvm/annotations/Test_2.scala index 83fdeb3f808..d098f4084ea 100644 --- a/test/files/jvm/annotations/Test_2.scala +++ b/test/files/jvm/annotations/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.tools.partest.Util.ArrayDeep import scala.language.reflectiveCalls diff --git a/test/files/jvm/deprecation/Test_1.scala b/test/files/jvm/deprecation/Test_1.scala index 04c9b22365b..3288e20a4a5 100644 --- a/test/files/jvm/deprecation/Test_1.scala +++ b/test/files/jvm/deprecation/Test_1.scala @@ -1,5 +1,5 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation class Test { def test: Unit = { diff --git a/test/files/jvm/nil-conversion/Foo_1.scala b/test/files/jvm/nil-conversion/Foo_1.scala index 51144f297ce..1fcf37c0393 100644 --- a/test/files/jvm/nil-conversion/Foo_1.scala +++ b/test/files/jvm/nil-conversion/Foo_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:none +//> using options -opt:none class Foo_1 { def foo: List[Int] = List() diff --git a/test/files/jvm/nil-conversion/Test.scala b/test/files/jvm/nil-conversion/Test.scala index 7305989fb5f..78013c21b43 100644 --- a/test/files/jvm/nil-conversion/Test.scala +++ b/test/files/jvm/nil-conversion/Test.scala @@ -1,4 +1,4 @@ -// scalac: -opt:none +//> using options -opt:none import scala.tools.partest.BytecodeTest import scala.tools.asm diff --git a/test/files/jvm/t10610.scala b/test/files/jvm/t10610.scala index a697bc941c8..b54e0de685a 100644 --- a/test/files/jvm/t10610.scala +++ b/test/files/jvm/t10610.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:serial +//> using options -Xlint:serial // @SerialVersionUID(0L) // should have no effect trait T diff --git a/test/files/jvm/t7253/test.scala b/test/files/jvm/t7253/test.scala index c506a116ae0..9ee22aa7188 100644 --- a/test/files/jvm/t7253/test.scala +++ b/test/files/jvm/t7253/test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint import scala.tools.asm.Opcodes import scala.tools.partest.BytecodeTest diff --git a/test/files/jvm/t8582.scala b/test/files/jvm/t8582.scala index da76d80e8de..8d33663d45e 100644 --- a/test/files/jvm/t8582.scala +++ b/test/files/jvm/t8582.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation import scala.tools.partest.BytecodeTest import scala.jdk.CollectionConverters._ diff --git a/test/files/neg/FooMapView.scala b/test/files/neg/FooMapView.scala index ce448be3a30..103bf924246 100644 --- a/test/files/neg/FooMapView.scala +++ b/test/files/neg/FooMapView.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation // class FooMapView extends collection.MapView[Int,Int] { def iterator: Iterator[(Int,Int)] = ??? diff --git a/test/files/neg/abstract-explaintypes.scala b/test/files/neg/abstract-explaintypes.scala index 99e09b956d3..2b2d3e6ad9c 100644 --- a/test/files/neg/abstract-explaintypes.scala +++ b/test/files/neg/abstract-explaintypes.scala @@ -1,4 +1,4 @@ -// scalac: -explaintypes +//> using options -explaintypes // trait A { type T <: A; diff --git a/test/files/neg/abstract-inaccessible.scala b/test/files/neg/abstract-inaccessible.scala index d2636a53e88..006ccc84a40 100644 --- a/test/files/neg/abstract-inaccessible.scala +++ b/test/files/neg/abstract-inaccessible.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:inaccessible +//> using options -Xfatal-warnings -Xlint:inaccessible // package foo { private[foo] trait Bippy { } diff --git a/test/files/neg/aladdin1055/Test_1.scala b/test/files/neg/aladdin1055/Test_1.scala index 4e2fb0c3ba1..4dd40df6366 100644 --- a/test/files/neg/aladdin1055/Test_1.scala +++ b/test/files/neg/aladdin1055/Test_1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings object Test { def foo(t: A.T) = t match { case a: A.TT => 0 diff --git a/test/files/neg/and-future.scala b/test/files/neg/and-future.scala index 1092c013b18..01e82120679 100644 --- a/test/files/neg/and-future.scala +++ b/test/files/neg/and-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // trait X diff --git a/test/files/neg/applydynamic_sip.scala b/test/files/neg/applydynamic_sip.scala index cc37378903b..5884dbec754 100644 --- a/test/files/neg/applydynamic_sip.scala +++ b/test/files/neg/applydynamic_sip.scala @@ -1,4 +1,4 @@ -// scalac: -language:dynamics +//> using options -language:dynamics // object Test extends App { val qual: Dynamic = ??? diff --git a/test/files/neg/auto-application.scala b/test/files/neg/auto-application.scala index 0da77191caf..906bd16d158 100644 --- a/test/files/neg/auto-application.scala +++ b/test/files/neg/auto-application.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror +//> using options -deprecation -Werror class Test { ("": Any).##() diff --git a/test/files/neg/bad-advice.scala b/test/files/neg/bad-advice.scala index d0706197278..0683a61036f 100644 --- a/test/files/neg/bad-advice.scala +++ b/test/files/neg/bad-advice.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Bip object Test { diff --git a/test/files/neg/badtok-1.scala b/test/files/neg/badtok-1.scala index 563711e2a51..c9e98d468bb 100644 --- a/test/files/neg/badtok-1.scala +++ b/test/files/neg/badtok-1.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation -Werror +//> using options -Xlint:deprecation -Werror // // bug 989 '42' diff --git a/test/files/neg/byname-implicit.scala b/test/files/neg/byname-implicit.scala index 49ce1011eda..d635bef915d 100644 --- a/test/files/neg/byname-implicit.scala +++ b/test/files/neg/byname-implicit.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:byname-implicit +//> using options -Werror -Xlint:byname-implicit import language._ diff --git a/test/files/neg/case-collision.scala b/test/files/neg/case-collision.scala index 378c6c3957f..4e005dc4047 100644 --- a/test/files/neg/case-collision.scala +++ b/test/files/neg/case-collision.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // package foo { diff --git a/test/files/neg/catch-all.scala b/test/files/neg/catch-all.scala index eb9f9b50671..46d6d757e4f 100644 --- a/test/files/neg/catch-all.scala +++ b/test/files/neg/catch-all.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // object CatchAll { try { "warn" } catch { case _ => } diff --git a/test/files/neg/check-dead.scala b/test/files/neg/check-dead.scala index f702c754e6f..efe12f0bb4b 100644 --- a/test/files/neg/check-dead.scala +++ b/test/files/neg/check-dead.scala @@ -1,4 +1,4 @@ -// scalac: -Wdead-code -Werror +//> using options -Wdead-code -Werror object Other { def oops(msg: String = "xxx"): Nothing = throw new Exception(msg) // should not warn } diff --git a/test/files/neg/checksensible.scala b/test/files/neg/checksensible.scala index 65cfe390edd..451f3ceb774 100644 --- a/test/files/neg/checksensible.scala +++ b/test/files/neg/checksensible.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation // final class Bip { def <=(other: Bop) = true } final class Bop { } diff --git a/test/files/neg/choices.scala b/test/files/neg/choices.scala index fa1ba9ab833..9803dfdf802 100644 --- a/test/files/neg/choices.scala +++ b/test/files/neg/choices.scala @@ -1,4 +1,4 @@ -// scalac: -Yresolve-term-conflict +//> using options -Yresolve-term-conflict // object Test { def main(args: Array[String]): Unit = { diff --git a/test/files/neg/classOfDeprecation.scala b/test/files/neg/classOfDeprecation.scala index d7557e3f2e9..92bab336b57 100644 --- a/test/files/neg/classOfDeprecation.scala +++ b/test/files/neg/classOfDeprecation.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror +//> using options -deprecation -Werror @deprecated("no no!", "like, forever") class C class ann(x: Any) extends annotation.Annotation diff --git a/test/files/neg/classmanifests_new_deprecations.scala b/test/files/neg/classmanifests_new_deprecations.scala index 71e5cd22ac8..2c253e17041 100644 --- a/test/files/neg/classmanifests_new_deprecations.scala +++ b/test/files/neg/classmanifests_new_deprecations.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror // object Test extends App { def rcm1[T: scala.reflect.ClassManifest] = ??? diff --git a/test/files/neg/constructor-init-order.scala b/test/files/neg/constructor-init-order.scala index 8bb8d720cc8..baaaa3fb2cd 100644 --- a/test/files/neg/constructor-init-order.scala +++ b/test/files/neg/constructor-init-order.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait Foo0 { val quux1: String diff --git a/test/files/neg/cycle-bounds.scala b/test/files/neg/cycle-bounds.scala index 5cf5db1996d..6a709cec752 100644 --- a/test/files/neg/cycle-bounds.scala +++ b/test/files/neg/cycle-bounds.scala @@ -1,4 +1,4 @@ -// scalac: -Ybreak-cycles +//> using options -Ybreak-cycles // // This should be allowed class Ok[T <: Comparable[_ >: T]] diff --git a/test/files/neg/delayed-init-ref.scala b/test/files/neg/delayed-init-ref.scala index eebabca1d31..1ad93fa328b 100644 --- a/test/files/neg/delayed-init-ref.scala +++ b/test/files/neg/delayed-init-ref.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xlint -Xfatal-warnings +//> using options -deprecation -Xlint -Xfatal-warnings // trait T { val traitVal = "" diff --git a/test/files/neg/deprecated-annots.scala b/test/files/neg/deprecated-annots.scala index 609a02ffc3e..fbdcd39b81c 100644 --- a/test/files/neg/deprecated-annots.scala +++ b/test/files/neg/deprecated-annots.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint -Xsource:3 +//> using options -Werror -Xlint -Xsource:3 class C[@specialized A] diff --git a/test/files/neg/deprecated-options.scala b/test/files/neg/deprecated-options.scala index ce12f38d587..bea08b8e324 100644 --- a/test/files/neg/deprecated-options.scala +++ b/test/files/neg/deprecated-options.scala @@ -1,4 +1,4 @@ // -// scalac: -Werror -deprecation -optimise -Xexperimental -Xfuture -Xsource:2.14 +//> using options -Werror -deprecation -optimise -Xexperimental -Xfuture -Xsource:2.14 // // Deprecated options are announced before compilation. diff --git a/test/files/neg/deprecated_widening.scala b/test/files/neg/deprecated_widening.scala index fade37e00d9..46fc46fdd25 100644 --- a/test/files/neg/deprecated_widening.scala +++ b/test/files/neg/deprecated_widening.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // object Test { def foo(i: Int, l: Long): Unit = { diff --git a/test/files/neg/dotless-targs-a.scala b/test/files/neg/dotless-targs-a.scala index d3095c69adf..a1bfe41655c 100644 --- a/test/files/neg/dotless-targs-a.scala +++ b/test/files/neg/dotless-targs-a.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -Yrangepos:false +//> using options -Xsource:3 -Yrangepos:false class A { def fn1 = List apply 1 def fn2 = List apply[Int] 2 diff --git a/test/files/neg/dotless-targs-b.scala b/test/files/neg/dotless-targs-b.scala index d54344238a9..838d6cb4984 100644 --- a/test/files/neg/dotless-targs-b.scala +++ b/test/files/neg/dotless-targs-b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Xsource:3 -Yrangepos:false +//> using options -Werror -Xlint -Xsource:3 -Yrangepos:false class A { def fn1 = List apply 1 def fn2 = List apply[Int] 2 diff --git a/test/files/neg/dotless-targs.scala b/test/files/neg/dotless-targs.scala index 70e01c9a00a..e4b41535fb1 100644 --- a/test/files/neg/dotless-targs.scala +++ b/test/files/neg/dotless-targs.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -language:postfixOps +//> using options -Xsource:3 -language:postfixOps // class A { def f1 = "f1" isInstanceOf[String] // not ok diff --git a/test/files/neg/early-type-defs.scala b/test/files/neg/early-type-defs.scala index ba78f423acd..8c425e9b5f2 100644 --- a/test/files/neg/early-type-defs.scala +++ b/test/files/neg/early-type-defs.scala @@ -1,4 +1,4 @@ // -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // object Test extends { type A1 = Int } with Runnable { def run() = () } diff --git a/test/files/neg/exhausting.scala b/test/files/neg/exhausting.scala index 48d6cc6b412..d595aab64b2 100644 --- a/test/files/neg/exhausting.scala +++ b/test/files/neg/exhausting.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { sealed abstract class Foo[T] diff --git a/test/files/neg/for-comprehension-old.scala b/test/files/neg/for-comprehension-old.scala index 0434d59adb2..adbb3babcc8 100644 --- a/test/files/neg/for-comprehension-old.scala +++ b/test/files/neg/for-comprehension-old.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // class A { for (x <- 1 to 5 ; y = x) yield x+y // ok diff --git a/test/files/neg/for-comprehension-val.scala b/test/files/neg/for-comprehension-val.scala index aaab52c2976..875e9d09a9f 100644 --- a/test/files/neg/for-comprehension-val.scala +++ b/test/files/neg/for-comprehension-val.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // class A { for (x <- 1 to 5 ; y = x) yield x+y // ok diff --git a/test/files/neg/hk-existential-lb.scala b/test/files/neg/hk-existential-lb.scala index af4bc27c334..df4ff906fb6 100644 --- a/test/files/neg/hk-existential-lb.scala +++ b/test/files/neg/hk-existential-lb.scala @@ -1,4 +1,4 @@ -// scalac: -language:higherKinds,existentials -Xfatal-warnings +//> using options -language:higherKinds,existentials -Xfatal-warnings // class Functor[F[_]] object Functor { diff --git a/test/files/neg/hk-typevar-unification.scala b/test/files/neg/hk-typevar-unification.scala index 9b44e40b106..2cd9c93b2b4 100644 --- a/test/files/neg/hk-typevar-unification.scala +++ b/test/files/neg/hk-typevar-unification.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // class A class B diff --git a/test/files/neg/i15552.scala b/test/files/neg/i15552.scala index e9363222d03..95f608efcb5 100644 --- a/test/files/neg/i15552.scala +++ b/test/files/neg/i15552.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class C { val ctx: C = new C() def f() = g(42)(using ctx) // error: no g diff --git a/test/files/neg/i17266.scala b/test/files/neg/i17266.scala index 78566ef26ef..411fa262c73 100644 --- a/test/files/neg/i17266.scala +++ b/test/files/neg/i17266.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xsource:3 -Xlint:universal-methods +//> using options -Werror -Xsource:3 -Xlint:universal-methods // Dotty has top-level defs, so the reference is linted based on context. // For Scala 2, check result of looking up the identifier. diff --git a/test/files/neg/i17266c.scala b/test/files/neg/i17266c.scala index 3cff3e34b30..1858c342771 100644 --- a/test/files/neg/i17266c.scala +++ b/test/files/neg/i17266c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:universal-methods +//> using options -Werror -Xlint:universal-methods object X diff --git a/test/files/neg/implicit-ambiguous-invalid.scala b/test/files/neg/implicit-ambiguous-invalid.scala index 465cd9163d9..ca6003e3449 100644 --- a/test/files/neg/implicit-ambiguous-invalid.scala +++ b/test/files/neg/implicit-ambiguous-invalid.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:implicit-not-found -Xfatal-warnings +//> using options -Xlint:implicit-not-found -Xfatal-warnings // object Test { trait =!=[C, D] diff --git a/test/files/neg/implicit-shadow.scala b/test/files/neg/implicit-shadow.scala index 33725ece13f..dffa838221f 100644 --- a/test/files/neg/implicit-shadow.scala +++ b/test/files/neg/implicit-shadow.scala @@ -1,4 +1,4 @@ -// scalac: -Vimplicits +//> using options -Vimplicits // object Test { import B._, C._ diff --git a/test/files/neg/implicitly-self.scala b/test/files/neg/implicitly-self.scala index 8515f1235d2..becd16ccb31 100644 --- a/test/files/neg/implicitly-self.scala +++ b/test/files/neg/implicitly-self.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:implicit-recursion +//> using options -Werror -Xlint:implicit-recursion // trait TC[A] { def ix: Int } diff --git a/test/files/neg/import-future.scala b/test/files/neg/import-future.scala index 288fd3d0e24..bc4d23165b7 100644 --- a/test/files/neg/import-future.scala +++ b/test/files/neg/import-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // class D { diff --git a/test/files/neg/import-syntax.scala b/test/files/neg/import-syntax.scala index 0e3deb00cce..00caf0aecd7 100644 --- a/test/files/neg/import-syntax.scala +++ b/test/files/neg/import-syntax.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 class D { def *(y: Int): Int = y diff --git a/test/files/neg/infixed.scala b/test/files/neg/infixed.scala index 01a6cd95097..1b8422e1792 100644 --- a/test/files/neg/infixed.scala +++ b/test/files/neg/infixed.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 class K { def x(y: Int) = 0 } diff --git a/test/files/neg/inlineIndyLambdaPrivate/Test_2.scala b/test/files/neg/inlineIndyLambdaPrivate/Test_2.scala index 71d75a45e47..87648689f11 100644 --- a/test/files/neg/inlineIndyLambdaPrivate/Test_2.scala +++ b/test/files/neg/inlineIndyLambdaPrivate/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Yopt-inline-heuristics:everything -Wopt:_ -Werror +//> using options -opt:inline:** -Yopt-inline-heuristics:everything -Wopt:_ -Werror class Test { def foo = A_1.test } diff --git a/test/files/neg/iterable-ordering.scala b/test/files/neg/iterable-ordering.scala index 9ef34b1cdb7..ae25b1dd452 100644 --- a/test/files/neg/iterable-ordering.scala +++ b/test/files/neg/iterable-ordering.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation -Werror +//> using options -Xlint:deprecation -Werror object Test { val o = Ordering[Iterable[Int]] } diff --git a/test/files/neg/lint-int-div-to-float.scala b/test/files/neg/lint-int-div-to-float.scala index 4f66c481384..927c82853f9 100644 --- a/test/files/neg/lint-int-div-to-float.scala +++ b/test/files/neg/lint-int-div-to-float.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings class C { def f = 1 diff --git a/test/files/neg/literals.scala b/test/files/neg/literals.scala index 9557d26bdc5..f7e9e3d2bf4 100644 --- a/test/files/neg/literals.scala +++ b/test/files/neg/literals.scala @@ -1,4 +1,4 @@ -// scalac: -Woctal-literal -Werror -deprecation +//> using options -Woctal-literal -Werror -deprecation trait RejectedLiterals { def missingHex: Int = { 0x } // line 4: was: not reported, taken as zero diff --git a/test/files/neg/locally-x.scala b/test/files/neg/locally-x.scala index 4a6c7560058..58435659b2d 100644 --- a/test/files/neg/locally-x.scala +++ b/test/files/neg/locally-x.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // // an innocent gotcha // diff --git a/test/files/neg/logImplicits.scala b/test/files/neg/logImplicits.scala index 2d94fcbd3b6..72df36b90a1 100644 --- a/test/files/neg/logImplicits.scala +++ b/test/files/neg/logImplicits.scala @@ -1,4 +1,4 @@ -// scalac: -Xlog-implicit-conversions +//> using options -Xlog-implicit-conversions // class A { def f(xs: Array[Byte]) = xs.size diff --git a/test/files/neg/macro-annot-not-expanded/Macros_1.scala b/test/files/neg/macro-annot-not-expanded/Macros_1.scala index fdb63874cdd..08c24880d5a 100644 --- a/test/files/neg/macro-annot-not-expanded/Macros_1.scala +++ b/test/files/neg/macro-annot-not-expanded/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations +//> using options -Ymacro-annotations import scala.language.experimental.macros import scala.reflect.macros.blackbox import scala.annotation.StaticAnnotation diff --git a/test/files/neg/macro-annot-unused-param/Macros_1.scala b/test/files/neg/macro-annot-unused-param/Macros_1.scala index 17d602216c2..3ab8d0bc820 100644 --- a/test/files/neg/macro-annot-unused-param/Macros_1.scala +++ b/test/files/neg/macro-annot-unused-param/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations +//> using options -Ymacro-annotations import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context import scala.annotation.StaticAnnotation diff --git a/test/files/neg/macro-annot-unused-param/Test_2.scala b/test/files/neg/macro-annot-unused-param/Test_2.scala index 6ac2d3f50ee..f43e1122a8a 100644 --- a/test/files/neg/macro-annot-unused-param/Test_2.scala +++ b/test/files/neg/macro-annot-unused-param/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations -Wunused:params -Wmacros:after -Werror +//> using options -Ymacro-annotations -Wunused:params -Wmacros:after -Werror @mymacro class X diff --git a/test/files/neg/macro-deprecate-idents.scala b/test/files/neg/macro-deprecate-idents.scala index 7c0e9e762a1..be21c06893d 100644 --- a/test/files/neg/macro-deprecate-idents.scala +++ b/test/files/neg/macro-deprecate-idents.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object Test1 { val macro = ??? diff --git a/test/files/neg/macro-incompatible-macro-engine-a/Macros_2.scala b/test/files/neg/macro-incompatible-macro-engine-a/Macros_2.scala index 5b24ff5c7b1..c3e2b9255ab 100644 --- a/test/files/neg/macro-incompatible-macro-engine-a/Macros_2.scala +++ b/test/files/neg/macro-incompatible-macro-engine-a/Macros_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/macro-incompatible-macro-engine-b/Macros_2.scala b/test/files/neg/macro-incompatible-macro-engine-b/Macros_2.scala index 5b24ff5c7b1..c3e2b9255ab 100644 --- a/test/files/neg/macro-incompatible-macro-engine-b/Macros_2.scala +++ b/test/files/neg/macro-incompatible-macro-engine-b/Macros_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/macro-incompatible-macro-engine-b/Test_3.scala b/test/files/neg/macro-incompatible-macro-engine-b/Test_3.scala index c1ff232f98b..e9f7953e388 100644 --- a/test/files/neg/macro-incompatible-macro-engine-b/Test_3.scala +++ b/test/files/neg/macro-incompatible-macro-engine-b/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Vmacro-lite +//> using options -Vmacro-lite object Test extends App { Macros.foo Macros.foo diff --git a/test/files/neg/macro-invalidret/Macros_Test_2.scala b/test/files/neg/macro-invalidret/Macros_Test_2.scala index c1851acc020..102d112fb58 100644 --- a/test/files/neg/macro-invalidret/Macros_Test_2.scala +++ b/test/files/neg/macro-invalidret/Macros_Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation -Werror +//> using options -Xlint:deprecation -Werror import language.experimental.macros object Macros { diff --git a/test/files/neg/main1.scala b/test/files/neg/main1.scala index 29592080835..a07b51e0d03 100644 --- a/test/files/neg/main1.scala +++ b/test/files/neg/main1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // negatives package foo1 { diff --git a/test/files/neg/main2.scala b/test/files/neg/main2.scala index 3ec0c607ef6..2b3bb7a0a12 100644 --- a/test/files/neg/main2.scala +++ b/test/files/neg/main2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xmain-class p.X +//> using options -Xfatal-warnings -Xmain-class p.X // // emit a warning diff --git a/test/files/neg/maxerrs.scala b/test/files/neg/maxerrs.scala index ad24a1cac4b..f72577f5a31 100644 --- a/test/files/neg/maxerrs.scala +++ b/test/files/neg/maxerrs.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxerrs 3 -Xfatal-warnings -deprecation +//> using options -Xmaxerrs 3 -Xfatal-warnings -deprecation // object X { diff --git a/test/files/neg/maxwarns.scala b/test/files/neg/maxwarns.scala index 8b8d21329a0..a5523a9af8d 100644 --- a/test/files/neg/maxwarns.scala +++ b/test/files/neg/maxwarns.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 3 -Xfatal-warnings -deprecation +//> using options -Xmaxwarns 3 -Xfatal-warnings -deprecation // object X { diff --git a/test/files/neg/multi-array.scala b/test/files/neg/multi-array.scala index ce50a0f4a1c..82fb938d511 100644 --- a/test/files/neg/multi-array.scala +++ b/test/files/neg/multi-array.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // /** Multi-dimensional array creation with `new` was removed in 2.10. * The replacement Array.ofDim[Int](10,10) makes the original mistake diff --git a/test/files/neg/names-defaults-neg-213.scala b/test/files/neg/names-defaults-neg-213.scala index d40d6b9071b..8e5c212f1d6 100644 --- a/test/files/neg/names-defaults-neg-213.scala +++ b/test/files/neg/names-defaults-neg-213.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // class C { def f1(x: Unit): Int = 0 diff --git a/test/files/neg/names-defaults-neg-pu.scala b/test/files/neg/names-defaults-neg-pu.scala index e381e1119e1..1656b8b4069 100644 --- a/test/files/neg/names-defaults-neg-pu.scala +++ b/test/files/neg/names-defaults-neg-pu.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // object Test extends App { // TESTS diff --git a/test/files/neg/names-defaults-neg-warn.scala b/test/files/neg/names-defaults-neg-warn.scala index 3ecd909eaa2..611ef6d6591 100644 --- a/test/files/neg/names-defaults-neg-warn.scala +++ b/test/files/neg/names-defaults-neg-warn.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object Test extends App { object deprNam2 { diff --git a/test/files/neg/names-defaults-neg.scala b/test/files/neg/names-defaults-neg.scala index c738aaa7de0..fe76f5e41e8 100644 --- a/test/files/neg/names-defaults-neg.scala +++ b/test/files/neg/names-defaults-neg.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // object Test extends App { // TESTS diff --git a/test/files/neg/nested-class-shadowing-removal.scala b/test/files/neg/nested-class-shadowing-removal.scala index 7b84845dfc1..a691d3aed9d 100644 --- a/test/files/neg/nested-class-shadowing-removal.scala +++ b/test/files/neg/nested-class-shadowing-removal.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // trait Core { diff --git a/test/files/neg/nested-class-shadowing.scala b/test/files/neg/nested-class-shadowing.scala index d9ac447a407..c50d695503b 100644 --- a/test/files/neg/nested-class-shadowing.scala +++ b/test/files/neg/nested-class-shadowing.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // trait Core { diff --git a/test/files/neg/newpat_unreachable.scala b/test/files/neg/newpat_unreachable.scala index ccaf5ab5a82..8d6b0221675 100644 --- a/test/files/neg/newpat_unreachable.scala +++ b/test/files/neg/newpat_unreachable.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { class A { diff --git a/test/files/neg/no-predef.scala b/test/files/neg/no-predef.scala index c4a1a120bad..64f55028d46 100644 --- a/test/files/neg/no-predef.scala +++ b/test/files/neg/no-predef.scala @@ -1,4 +1,4 @@ -// scalac: -Yno-predef +//> using options -Yno-predef // class NoPredef { def f1 = 5L: java.lang.Long diff --git a/test/files/neg/nonlocal-warning.scala b/test/files/neg/nonlocal-warning.scala index bfc731a6527..8fcf2e1c470 100644 --- a/test/files/neg/nonlocal-warning.scala +++ b/test/files/neg/nonlocal-warning.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Foo { def foo(l: List[Int]): Int = { diff --git a/test/files/neg/nonsense_eq_refine.scala b/test/files/neg/nonsense_eq_refine.scala index c14776e9c1f..952003f8175 100644 --- a/test/files/neg/nonsense_eq_refine.scala +++ b/test/files/neg/nonsense_eq_refine.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class E class SE extends Serializable diff --git a/test/files/neg/nonunit-if.scala b/test/files/neg/nonunit-if.scala index 17aee82cc15..8d79ef2a5fc 100644 --- a/test/files/neg/nonunit-if.scala +++ b/test/files/neg/nonunit-if.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wnonunit-statement -Wnonunit-if:true -Wvalue-discard +//> using options -Werror -Wnonunit-statement -Wnonunit-if:true -Wvalue-discard // debug: -Vprint:refchecks -Yprint-trees:format import collection.ArrayOps import collection.mutable.{ArrayBuilder, LinkedHashSet, ListBuffer} diff --git a/test/files/neg/nonunit-statement.scala b/test/files/neg/nonunit-statement.scala index 192091dbd03..40d1cc8357c 100644 --- a/test/files/neg/nonunit-statement.scala +++ b/test/files/neg/nonunit-statement.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wnonunit-statement -Wnonunit-if:false -Wvalue-discard +//> using options -Werror -Wnonunit-statement -Wnonunit-if:false -Wvalue-discard // debug: -Vprint:refchecks -Yprint-trees:format import collection.ArrayOps import collection.mutable.{ArrayBuilder, LinkedHashSet, ListBuffer} diff --git a/test/files/neg/nowarnMacros/Test_2.scala b/test/files/neg/nowarnMacros/Test_2.scala index c9d76a54a39..207e4fa019b 100644 --- a/test/files/neg/nowarnMacros/Test_2.scala +++ b/test/files/neg/nowarnMacros/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import language.experimental.macros import scala.annotation.nowarn diff --git a/test/files/neg/nowarnPointPos.scala b/test/files/neg/nowarnPointPos.scala index 0551d7aae37..770867388dd 100644 --- a/test/files/neg/nowarnPointPos.scala +++ b/test/files/neg/nowarnPointPos.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Wunused:nowarn -Yrangepos:false -Werror +//> using options -deprecation -Wunused:nowarn -Yrangepos:false -Werror import scala.annotation._ class ann(a: Any) extends Annotation diff --git a/test/files/neg/nowarnRangePos.scala b/test/files/neg/nowarnRangePos.scala index 67c7975881d..2f98fc8b8f0 100644 --- a/test/files/neg/nowarnRangePos.scala +++ b/test/files/neg/nowarnRangePos.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Wunused:nowarn -Yrangepos:true -Werror +//> using options -deprecation -Wunused:nowarn -Yrangepos:true -Werror import scala.annotation._ class ann(a: Any) extends Annotation diff --git a/test/files/neg/nullary-override-3a.scala b/test/files/neg/nullary-override-3a.scala index dbf30d03472..da03b78585e 100644 --- a/test/files/neg/nullary-override-3a.scala +++ b/test/files/neg/nullary-override-3a.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:nowarn -Xsource:3 +//> using options -Werror -Wunused:nowarn -Xsource:3 // class A { def x: Int = 3 } class B extends A { override def x(): Int = 4 } diff --git a/test/files/neg/nullary-override-3b.scala b/test/files/neg/nullary-override-3b.scala index 265f9755b21..bf46b885dda 100644 --- a/test/files/neg/nullary-override-3b.scala +++ b/test/files/neg/nullary-override-3b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:nowarn -Xsource:3 +//> using options -Werror -Wunused:nowarn -Xsource:3 // // P has parens class P { def x(): Int = 3 } diff --git a/test/files/neg/nullary-override.scala b/test/files/neg/nullary-override.scala index 18b713b94f6..4d3884deed9 100644 --- a/test/files/neg/nullary-override.scala +++ b/test/files/neg/nullary-override.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:nowarn +//> using options -Werror -Wunused:nowarn // class A { def x: Int = 3 } class B extends A { override def x(): Int = 4 } diff --git a/test/files/neg/numeric-add-string-warning.scala b/test/files/neg/numeric-add-string-warning.scala index b9baf5c109f..07cae7735a8 100644 --- a/test/files/neg/numeric-add-string-warning.scala +++ b/test/files/neg/numeric-add-string-warning.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation // object Test { val x = 4 + "2" diff --git a/test/files/neg/open-infix-future.scala b/test/files/neg/open-infix-future.scala index 2a250f3b006..f667d7961f2 100644 --- a/test/files/neg/open-infix-future.scala +++ b/test/files/neg/open-infix-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // open trait A // error diff --git a/test/files/neg/outer-ref-checks.scala b/test/files/neg/outer-ref-checks.scala index c0e5d9e66b7..7e9996dac78 100644 --- a/test/files/neg/outer-ref-checks.scala +++ b/test/files/neg/outer-ref-checks.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.annotation.unchecked.uncheckedVariance diff --git a/test/files/neg/overloaded-implicit.scala b/test/files/neg/overloaded-implicit.scala index 43000ff824f..05b13be5b74 100644 --- a/test/files/neg/overloaded-implicit.scala +++ b/test/files/neg/overloaded-implicit.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:poly-implicit-overload -Xfatal-warnings -Xdev +//> using options -Xlint:poly-implicit-overload -Xfatal-warnings -Xdev // object Test { implicit def imp1[T](x: List[T]): Map[T, T] = Map() diff --git a/test/files/neg/parens-for-params.scala b/test/files/neg/parens-for-params.scala index 4f73f5df01b..b774c8d8cac 100644 --- a/test/files/neg/parens-for-params.scala +++ b/test/files/neg/parens-for-params.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 class C { def f = { diff --git a/test/files/neg/partestInvalidFlag.scala b/test/files/neg/partestInvalidFlag.scala index b6315e63d5f..b64913fa6e7 100644 --- a/test/files/neg/partestInvalidFlag.scala +++ b/test/files/neg/partestInvalidFlag.scala @@ -1,3 +1,3 @@ -// scalac: -badCompilerFlag notAFlag -opt:badChoice +//> using options -badCompilerFlag notAFlag -opt:badChoice // class C diff --git a/test/files/neg/pat_unreachable.scala b/test/files/neg/pat_unreachable.scala index cd5acfd093c..ae73d384eec 100644 --- a/test/files/neg/pat_unreachable.scala +++ b/test/files/neg/pat_unreachable.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test extends App { diff --git a/test/files/neg/patmat-classtag-compound.scala b/test/files/neg/patmat-classtag-compound.scala index 412123d7892..8867974a9ce 100644 --- a/test/files/neg/patmat-classtag-compound.scala +++ b/test/files/neg/patmat-classtag-compound.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test extends App{ trait Bar diff --git a/test/files/neg/patmat-exprs-b.scala b/test/files/neg/patmat-exprs-b.scala index 17b2ed63473..ac35e9c8bdc 100644 --- a/test/files/neg/patmat-exprs-b.scala +++ b/test/files/neg/patmat-exprs-b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // import annotation.nowarn diff --git a/test/files/neg/patmat-sealed-reachable.scala b/test/files/neg/patmat-sealed-reachable.scala index 3242daabc6a..e315db9743b 100644 --- a/test/files/neg/patmat-sealed-reachable.scala +++ b/test/files/neg/patmat-sealed-reachable.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // aka t12438.scala diff --git a/test/files/neg/patmatexhaust.scala b/test/files/neg/patmatexhaust.scala index 9e061be8af9..e44c26d70ed 100644 --- a/test/files/neg/patmatexhaust.scala +++ b/test/files/neg/patmatexhaust.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Ypatmat-exhaust-depth off +//> using options -Xfatal-warnings -Ypatmat-exhaust-depth off // class TestSealedExhaustive { // compile only sealed abstract class Foo diff --git a/test/files/neg/permanent-blindness.scala b/test/files/neg/permanent-blindness.scala index 975290508c0..88fd07ada44 100644 --- a/test/files/neg/permanent-blindness.scala +++ b/test/files/neg/permanent-blindness.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // package foo { class Bippy diff --git a/test/files/neg/prefix-unary-nilary-deprecation.scala b/test/files/neg/prefix-unary-nilary-deprecation.scala index 3060cda77f9..1a41640d48c 100644 --- a/test/files/neg/prefix-unary-nilary-deprecation.scala +++ b/test/files/neg/prefix-unary-nilary-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // class Foo { def unary_~() : Foo = this diff --git a/test/files/neg/prefix-unary-nilary-removal.scala b/test/files/neg/prefix-unary-nilary-removal.scala index cd8ec698685..0169fa2517c 100644 --- a/test/files/neg/prefix-unary-nilary-removal.scala +++ b/test/files/neg/prefix-unary-nilary-removal.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // class Foo { def unary_~() : Foo = this diff --git a/test/files/neg/procedure-deprecation.scala b/test/files/neg/procedure-deprecation.scala index 1e3cd199cb4..9ae5ed4d566 100644 --- a/test/files/neg/procedure-deprecation.scala +++ b/test/files/neg/procedure-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // abstract class Foo { def bar {} diff --git a/test/files/neg/procedure-removal.scala b/test/files/neg/procedure-removal.scala index 9177d191fa7..e7ae67e4ae7 100644 --- a/test/files/neg/procedure-removal.scala +++ b/test/files/neg/procedure-removal.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // abstract class Foo { def bar {} diff --git a/test/files/neg/qmark-deprecated.scala b/test/files/neg/qmark-deprecated.scala index f37edc58ea4..decba5fe92d 100644 --- a/test/files/neg/qmark-deprecated.scala +++ b/test/files/neg/qmark-deprecated.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // class Foo[?] // error diff --git a/test/files/neg/quickfix-silent.scala b/test/files/neg/quickfix-silent.scala index 99bdc0e50a2..856eaa8cea9 100644 --- a/test/files/neg/quickfix-silent.scala +++ b/test/files/neg/quickfix-silent.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror -quickfix:silent +//> using options -deprecation -Werror -quickfix:silent class C { def f { println } diff --git a/test/files/neg/recursive-method-default.scala b/test/files/neg/recursive-method-default.scala index b2972e6c8b5..2187f4d1afa 100644 --- a/test/files/neg/recursive-method-default.scala +++ b/test/files/neg/recursive-method-default.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:recurse-with-default +//> using options -Werror -Xlint:recurse-with-default object Test { def rec1(a: Any, b: Any = "".reverse): Any = { rec1(0, 0) // okay diff --git a/test/files/neg/ref-checks.scala b/test/files/neg/ref-checks.scala index e68f2593881..42bab64d346 100644 --- a/test/files/neg/ref-checks.scala +++ b/test/files/neg/ref-checks.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror +//> using options -deprecation -Werror import scala.annotation.{StaticAnnotation, nowarn} import scala.reflect.internal.annotations.uncheckedBounds diff --git a/test/files/neg/scala3-keywords.scala b/test/files/neg/scala3-keywords.scala index 23fbce36dc4..6c37baaa551 100644 --- a/test/files/neg/scala3-keywords.scala +++ b/test/files/neg/scala3-keywords.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // class A { val `enum`: Int = 1 diff --git a/test/files/neg/sd503.scala b/test/files/neg/sd503.scala index dd7fbdaf28a..7c89cb5a52a 100644 --- a/test/files/neg/sd503.scala +++ b/test/files/neg/sd503.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:multiarg-infix +//> using options -Xlint:multiarg-infix // // lint multiarg infix syntax, e.g., vs += (1, 2, 3) // Since infix is encouraged by symbolic operator names, discourage defining def += (x: A, y: A, zs: A*) diff --git a/test/files/neg/sealed-final-neg.scala b/test/files/neg/sealed-final-neg.scala index 25ad1ed8b55..1698f46712c 100644 --- a/test/files/neg/sealed-final-neg.scala +++ b/test/files/neg/sealed-final-neg.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -opt:inline:** -Wopt +//> using options -Werror -opt:inline:** -Wopt // package neg1 { sealed abstract class Foo { diff --git a/test/files/neg/sealed-java-enums.scala b/test/files/neg/sealed-java-enums.scala index f22b8c44818..7aead780d91 100644 --- a/test/files/neg/sealed-java-enums.scala +++ b/test/files/neg/sealed-java-enums.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // import java.lang.Thread.State import java.lang.Thread.State._ diff --git a/test/files/neg/sip23-uninitialized-1.scala b/test/files/neg/sip23-uninitialized-1.scala index d6e3df1602f..89804aafafc 100644 --- a/test/files/neg/sip23-uninitialized-1.scala +++ b/test/files/neg/sip23-uninitialized-1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { val f1: 1 = f1 // warning: recursive diff --git a/test/files/neg/sip23-uninitialized-3.scala b/test/files/neg/sip23-uninitialized-3.scala index 9cae9cdf1b5..bf7b7723aa1 100644 --- a/test/files/neg/sip23-uninitialized-3.scala +++ b/test/files/neg/sip23-uninitialized-3.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { var f3: 1 = f3 // warning: recursive diff --git a/test/files/neg/stmt-expr-discard.scala b/test/files/neg/stmt-expr-discard.scala index 35c014f6b4c..a5c9f62627a 100644 --- a/test/files/neg/stmt-expr-discard.scala +++ b/test/files/neg/stmt-expr-discard.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xsource:2.13 -Xlint:deprecation +//> using options -Werror -Xsource:2.13 -Xlint:deprecation // class A { def f = 1 diff --git a/test/files/neg/switch.scala b/test/files/neg/switch.scala index 9d0defc0b5f..428d80cce26 100644 --- a/test/files/neg/switch.scala +++ b/test/files/neg/switch.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.annotation.switch diff --git a/test/files/neg/symbol-literal-deprecation.scala b/test/files/neg/symbol-literal-deprecation.scala index 4ab45cf7ce1..296d18c377d 100644 --- a/test/files/neg/symbol-literal-deprecation.scala +++ b/test/files/neg/symbol-literal-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // abstract class Foo { val foo = 'TestSymbol diff --git a/test/files/neg/t0903.scala b/test/files/neg/t0903.scala index 9b69dcf3cf0..7b178d75811 100644 --- a/test/files/neg/t0903.scala +++ b/test/files/neg/t0903.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test { val x = 1 diff --git a/test/files/neg/t10019.scala b/test/files/neg/t10019.scala index 9d9aac4e7ff..8c4c910a588 100644 --- a/test/files/neg/t10019.scala +++ b/test/files/neg/t10019.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Bug { sealed case class Foo(e: Option[Int]) diff --git a/test/files/neg/t10068.scala b/test/files/neg/t10068.scala index 30a1e8d25f3..1128b68d710 100644 --- a/test/files/neg/t10068.scala +++ b/test/files/neg/t10068.scala @@ -1,4 +1,4 @@ -// scalac: -Xelide-below WARNING -Xsource:2.13 +//> using options -Xelide-below WARNING -Xsource:2.13 // import annotation._, elidable._ diff --git a/test/files/neg/t10097.scala b/test/files/neg/t10097.scala index c12d6891c9f..592ea545940 100644 --- a/test/files/neg/t10097.scala +++ b/test/files/neg/t10097.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // case class C(implicit val c: Int) diff --git a/test/files/neg/t10097b.scala b/test/files/neg/t10097b.scala index 34836b52c64..d52e9be1226 100644 --- a/test/files/neg/t10097b.scala +++ b/test/files/neg/t10097b.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // case class C(implicit val c: Int) diff --git a/test/files/neg/t10270/Main_2.scala b/test/files/neg/t10270/Main_2.scala index 34bc9849c34..e15240dd05d 100644 --- a/test/files/neg/t10270/Main_2.scala +++ b/test/files/neg/t10270/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:imports -Werror +//> using options -Wunused:imports -Werror object Main extends App { def f(): Any = Macro { diff --git a/test/files/neg/t10296-after/Unused_2.scala b/test/files/neg/t10296-after/Unused_2.scala index 95e6234f050..93c110c35cb 100644 --- a/test/files/neg/t10296-after/Unused_2.scala +++ b/test/files/neg/t10296-after/Unused_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:unused -Wmacros:after +//> using options -Werror -Xlint:unused -Wmacros:after import scala.language.experimental.macros object Unused extends App { diff --git a/test/files/neg/t10296-warn/Unused_2.scala b/test/files/neg/t10296-warn/Unused_2.scala index e3f8ca93256..a0fbd1ff5ce 100644 --- a/test/files/neg/t10296-warn/Unused_2.scala +++ b/test/files/neg/t10296-warn/Unused_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:unused +//> using options -Werror -Xlint:unused import scala.language.experimental.macros object Unused { diff --git a/test/files/neg/t10502.scala b/test/files/neg/t10502.scala index 979b8c878f0..c428adaea89 100644 --- a/test/files/neg/t10502.scala +++ b/test/files/neg/t10502.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:strict-unsealed-patmat +//> using options -Werror -Xlint:strict-unsealed-patmat object Bug { object Perhaps { def unapply[A](oa: Option[A]): Some[Option[A]] = Some(oa) diff --git a/test/files/neg/t10678.scala b/test/files/neg/t10678.scala index 7f40125cfc2..62bb3025ef0 100644 --- a/test/files/neg/t10678.scala +++ b/test/files/neg/t10678.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // trait T diff --git a/test/files/neg/t10733.scala b/test/files/neg/t10733.scala index 98b4864f7e1..01d779d1a70 100644 --- a/test/files/neg/t10733.scala +++ b/test/files/neg/t10733.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos -Ystop-after:parser +//> using options -Yrangepos -Ystop-after:parser trait T[_] trait U[_, _] diff --git a/test/files/neg/t10752/Test_2.scala b/test/files/neg/t10752/Test_2.scala index 5f76ec601f7..18b74b3cb81 100644 --- a/test/files/neg/t10752/Test_2.scala +++ b/test/files/neg/t10752/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation -Werror +//> using options -Xlint:deprecation -Werror object Test extends p1.DeprecatedClass { def useC = p1.DeprecatedClass.foo def useM = p1.DeprecatedMethod.foo diff --git a/test/files/neg/t10763.scala b/test/files/neg/t10763.scala index c5e00858236..edf22e4e3c9 100644 --- a/test/files/neg/t10763.scala +++ b/test/files/neg/t10763.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused +//> using options -Werror -Wunused object Test extends App { // cf test/files/pos/t10763.scala test/files/run/t11938.scala diff --git a/test/files/neg/t10790.scala b/test/files/neg/t10790.scala index cc199c7b207..5864767fa15 100644 --- a/test/files/neg/t10790.scala +++ b/test/files/neg/t10790.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused +//> using options -Werror -Wunused import annotation.unused diff --git a/test/files/neg/t10806.scala b/test/files/neg/t10806.scala index 10abc6d46a3..54d4f9d5399 100644 --- a/test/files/neg/t10806.scala +++ b/test/files/neg/t10806.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror trait T { diff --git a/test/files/neg/t10820-warn.scala b/test/files/neg/t10820-warn.scala index 97796aaa90d..57fc9bc984e 100644 --- a/test/files/neg/t10820-warn.scala +++ b/test/files/neg/t10820-warn.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wperformance +//> using options -Werror -Wperformance // import util.Try diff --git a/test/files/neg/t10938.scala b/test/files/neg/t10938.scala index 757230ed608..b880272378b 100644 --- a/test/files/neg/t10938.scala +++ b/test/files/neg/t10938.scala @@ -1,4 +1,4 @@ -// scalac: -feature +//> using options -feature trait T { def f(): scala.xxx.XXX[_, _] = ??? diff --git a/test/files/neg/t11012.scala b/test/files/neg/t11012.scala index 9ac9d1d562a..4f109c12632 100644 --- a/test/files/neg/t11012.scala +++ b/test/files/neg/t11012.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation import scala.annotation.StaticAnnotation @deprecated("class!", "") class A extends StaticAnnotation diff --git a/test/files/neg/t11379a.scala b/test/files/neg/t11379a.scala index 3502d5cf0e8..5ed2de4b315 100644 --- a/test/files/neg/t11379a.scala +++ b/test/files/neg/t11379a.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wvalue-discard +//> using options -Werror -Wvalue-discard object UnitOfTrust { import scala.util._ diff --git a/test/files/neg/t11379b.scala b/test/files/neg/t11379b.scala index afd5233d3c0..0e00bcf3271 100644 --- a/test/files/neg/t11379b.scala +++ b/test/files/neg/t11379b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wvalue-discard +//> using options -Werror -Wvalue-discard class OneTypeParam[B](value: B) { def map[B1](fn: B => B1): OneTypeParam[B1] = new OneTypeParam(fn(value)) def unitValue: OneTypeParam[Unit] = new OneTypeParam(()) diff --git a/test/files/neg/t11379c.scala b/test/files/neg/t11379c.scala index 0a4f5e4925b..c1f21547d43 100644 --- a/test/files/neg/t11379c.scala +++ b/test/files/neg/t11379c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wvalue-discard +//> using options -Werror -Wvalue-discard class OneTypeParam[B](value: B) { def map[B1](fn: B => B1): OneTypeParam[B1] = new OneTypeParam(fn(value)) diff --git a/test/files/neg/t11618.scala b/test/files/neg/t11618.scala index 49dbfb5bc9b..cef5b3a36c4 100644 --- a/test/files/neg/t11618.scala +++ b/test/files/neg/t11618.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // warn about introducing Unit-valued fields instead of merely side-effecting. // warn about implicit not introducing any implicits diff --git a/test/files/neg/t11643.scala b/test/files/neg/t11643.scala index a0ec2358743..8c5b4e0a30c 100644 --- a/test/files/neg/t11643.scala +++ b/test/files/neg/t11643.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Wunused:params +//> using options -Werror -Wunused:params trait T { def f(implicit i: Int) = i diff --git a/test/files/neg/t11644a.scala b/test/files/neg/t11644a.scala index 3e9ef0dcb0b..3f51e8cf667 100644 --- a/test/files/neg/t11644a.scala +++ b/test/files/neg/t11644a.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // // eta-expansion to SAM type always warns in Scala 3 world diff --git a/test/files/neg/t11644b.scala b/test/files/neg/t11644b.scala index 299667389a5..0722aa7ab32 100644 --- a/test/files/neg/t11644b.scala +++ b/test/files/neg/t11644b.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation,eta-zero,eta-sam +//> using options -Xlint:deprecation,eta-zero,eta-sam trait AcciSamZero { def apply(): Int } diff --git a/test/files/neg/t11644c/s.scala b/test/files/neg/t11644c/s.scala index 185ba67ad22..06085452737 100644 --- a/test/files/neg/t11644c/s.scala +++ b/test/files/neg/t11644c/s.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -Werror +//> using options -Xsource:3 -Werror class C { def f(j: J): Int = j.f(42) diff --git a/test/files/neg/t11681.scala b/test/files/neg/t11681.scala index 8cface30f25..0254fa0884d 100644 --- a/test/files/neg/t11681.scala +++ b/test/files/neg/t11681.scala @@ -1,5 +1,5 @@ // -// scalac: -Wunused:privates -Werror +//> using options -Wunused:privates -Werror // package com diff --git a/test/files/neg/t11690.scala b/test/files/neg/t11690.scala index 20e746cb026..79f84c9ad1b 100644 --- a/test/files/neg/t11690.scala +++ b/test/files/neg/t11690.scala @@ -1,5 +1,5 @@ -// scalac: -Wunused:imports -Werror +//> using options -Wunused:imports -Werror object X { val v = 27 diff --git a/test/files/neg/t11746.scala b/test/files/neg/t11746.scala index c6f81d99496..9a95f427873 100644 --- a/test/files/neg/t11746.scala +++ b/test/files/neg/t11746.scala @@ -1,5 +1,5 @@ // -// scalac: -Werror -opt:inline:** -Wopt:none,_ +//> using options -Werror -opt:inline:** -Wopt:none,_ // // compare -opt-warnings:none,at-inline-failed-summary diff --git a/test/files/neg/t11758.scala b/test/files/neg/t11758.scala index c6109ff684f..027d4ca2d86 100644 --- a/test/files/neg/t11758.scala +++ b/test/files/neg/t11758.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation -Wunused:imports -Werror +//> using options -Xlint:deprecation -Wunused:imports -Werror import language.higherKinds diff --git a/test/files/neg/t11921-alias.scala b/test/files/neg/t11921-alias.scala index fab5ae9badc..2e413163308 100644 --- a/test/files/neg/t11921-alias.scala +++ b/test/files/neg/t11921-alias.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xsource:3 +//> using options -Werror -Xsource:3 object t1 { class C[T] { type TT = T } diff --git a/test/files/neg/t11921.scala b/test/files/neg/t11921.scala index 91093f3e744..fe3f4fa2bfe 100644 --- a/test/files/neg/t11921.scala +++ b/test/files/neg/t11921.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 class C { def lazyMap[A, B](coll: Iterable[A], f: A => B) = diff --git a/test/files/neg/t11921b.scala b/test/files/neg/t11921b.scala index bf397ffcfad..4097c7a2144 100644 --- a/test/files/neg/t11921b.scala +++ b/test/files/neg/t11921b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xsource:3 +//> using options -Werror -Xsource:3 object test1 { diff --git a/test/files/neg/t11921c.scala b/test/files/neg/t11921c.scala index 3b38fa6c952..280cd3eabc4 100644 --- a/test/files/neg/t11921c.scala +++ b/test/files/neg/t11921c.scala @@ -1,4 +1,4 @@ -// scalac: -Wconf:msg=legacy-binding:s -Xsource:3 +//> using options -Wconf:msg=legacy-binding:s -Xsource:3 class C { def lazyMap[A, B](coll: Iterable[A], f: A => B) = diff --git a/test/files/neg/t11938.scala b/test/files/neg/t11938.scala index b0b2b2e8348..7c8c5bedb74 100644 --- a/test/files/neg/t11938.scala +++ b/test/files/neg/t11938.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror class Test { val a: Nil.type = (Vector(): Any) match { case n @ Nil => n } // error diff --git a/test/files/neg/t11952.scala b/test/files/neg/t11952.scala index 8a7b5449846..c24f18689ef 100644 --- a/test/files/neg/t11952.scala +++ b/test/files/neg/t11952.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Xmaxwarns 0 +//> using options -Werror -Xlint -Xmaxwarns 0 // // nowarn should mean no warnings are emitted, // irrespective of other flags, and also no diff --git a/test/files/neg/t11952b.scala b/test/files/neg/t11952b.scala index 573def21c87..e3d68fe6297 100644 --- a/test/files/neg/t11952b.scala +++ b/test/files/neg/t11952b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Vdebug +//> using options -Werror -Xlint -Vdebug // // Multiple errors at a location are shown under debug. // diff --git a/test/files/neg/t11962.scala b/test/files/neg/t11962.scala index db9c340ce2e..9dd109f3e3e 100644 --- a/test/files/neg/t11962.scala +++ b/test/files/neg/t11962.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror -Ystop-after:refchecks +//> using options -Xlint -Werror -Ystop-after:refchecks trait T extends Any { def f = println() } diff --git a/test/files/neg/t12071.scala b/test/files/neg/t12071.scala index f3f9529c147..9bc0e851ea3 100644 --- a/test/files/neg/t12071.scala +++ b/test/files/neg/t12071.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Xmigration:2.13 +//> using options -Werror -Xlint -Xmigration:2.13 class C { def `c c`(n: Int): Int = n + 1 diff --git a/test/files/neg/t12134/sample_2.scala b/test/files/neg/t12134/sample_2.scala index b1de02a551b..5d3b9aadb96 100644 --- a/test/files/neg/t12134/sample_2.scala +++ b/test/files/neg/t12134/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:unplugged -d testy.jar +//> using options -Xplugin:. -Xplugin-require:unplugged -d testy.jar package sample // The unplugged plugin pre-emptively creates a read-only testy.jar. diff --git a/test/files/neg/t1215.scala b/test/files/neg/t1215.scala index ab6a6d976dd..9dbaacbfc1f 100644 --- a/test/files/neg/t1215.scala +++ b/test/files/neg/t1215.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test { val x = 1 += 1 diff --git a/test/files/neg/t12159c/s_2.scala b/test/files/neg/t12159c/s_2.scala index ec9c445cad4..728519d3193 100644 --- a/test/files/neg/t12159c/s_2.scala +++ b/test/files/neg/t12159c/s_2.scala @@ -1,5 +1,5 @@ // javaVersion: 17+ -// scalac: -Werror +//> using options -Werror package p class C { diff --git a/test/files/neg/t12159d/t.scala b/test/files/neg/t12159d/t.scala index e57c9cd62dd..6d26704cbea 100644 --- a/test/files/neg/t12159d/t.scala +++ b/test/files/neg/t12159d/t.scala @@ -1,5 +1,5 @@ // javaVersion: 17+ -// scalac: -Werror +//> using options -Werror package p class C { diff --git a/test/files/neg/t12159e/t.scala b/test/files/neg/t12159e/t.scala index 1d5810a09f8..c01cc373ff3 100644 --- a/test/files/neg/t12159e/t.scala +++ b/test/files/neg/t12159e/t.scala @@ -1,5 +1,5 @@ // javaVersion: 17+ -// scalac: -Werror +//> using options -Werror package p class C { diff --git a/test/files/neg/t12159f/t.scala b/test/files/neg/t12159f/t.scala index 1d5810a09f8..c01cc373ff3 100644 --- a/test/files/neg/t12159f/t.scala +++ b/test/files/neg/t12159f/t.scala @@ -1,5 +1,5 @@ // javaVersion: 17+ -// scalac: -Werror +//> using options -Werror package p class C { diff --git a/test/files/neg/t12159g/t.scala b/test/files/neg/t12159g/t.scala index f92009287f1..a1cbf521e0e 100644 --- a/test/files/neg/t12159g/t.scala +++ b/test/files/neg/t12159g/t.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint package p class T { def n(a: X) = a match { case _: Y => 42 } diff --git a/test/files/neg/t12199.scala b/test/files/neg/t12199.scala index a9ceb3d07c4..822b8648368 100644 --- a/test/files/neg/t12199.scala +++ b/test/files/neg/t12199.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint class C { val a: IndexedSeq[Int] = Array(1, 2, 3) diff --git a/test/files/neg/t12237.scala b/test/files/neg/t12237.scala index 480634cf86f..0a8b27675fb 100644 --- a/test/files/neg/t12237.scala +++ b/test/files/neg/t12237.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed trait PathAndQuery sealed trait Path extends PathAndQuery sealed trait Query extends PathAndQuery diff --git a/test/files/neg/t1224.scala b/test/files/neg/t1224.scala index 9e638b14b85..64b76a04b3a 100644 --- a/test/files/neg/t1224.scala +++ b/test/files/neg/t1224.scala @@ -1,4 +1,4 @@ -// scalac: -Ybreak-cycles +//> using options -Ybreak-cycles // trait C[T] {} diff --git a/test/files/neg/t12240.scala b/test/files/neg/t12240.scala index c1a3b068c5f..bebd05e8376 100644 --- a/test/files/neg/t12240.scala +++ b/test/files/neg/t12240.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:strict-unsealed-patmat +//> using options -Xfatal-warnings -Xlint:strict-unsealed-patmat // object Test { diff --git a/test/files/neg/t12304.scala b/test/files/neg/t12304.scala index 1f6c3e8b715..0e40e8fa140 100644 --- a/test/files/neg/t12304.scala +++ b/test/files/neg/t12304.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // variant of pos/t12304 // that does warn as desired diff --git a/test/files/neg/t12326.scala b/test/files/neg/t12326.scala index 23343825005..8515393c8f6 100644 --- a/test/files/neg/t12326.scala +++ b/test/files/neg/t12326.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports -Wconf:site=p.T:s +//> using options -Werror -Wunused:imports -Wconf:site=p.T:s package p diff --git a/test/files/neg/t12326b.scala b/test/files/neg/t12326b.scala index 6e261b0f257..3b8054fd007 100644 --- a/test/files/neg/t12326b.scala +++ b/test/files/neg/t12326b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports -Wconf:site=p.T:s,origin=scala.collection.mutable.Map:s,origin=scala.collection.mutable.Set:s +//> using options -Werror -Wunused:imports -Wconf:site=p.T:s,origin=scala.collection.mutable.Map:s,origin=scala.collection.mutable.Set:s package p diff --git a/test/files/neg/t12326c.scala b/test/files/neg/t12326c.scala index 22652417e0d..37f8c86f1d6 100644 --- a/test/files/neg/t12326c.scala +++ b/test/files/neg/t12326c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports -Wconf:origin=scala.collection.mutable.*:s +//> using options -Werror -Wunused:imports -Wconf:origin=scala.collection.mutable.*:s package p diff --git a/test/files/neg/t12408.scala b/test/files/neg/t12408.scala index ab5879ae5c6..fc6ffa9899f 100644 --- a/test/files/neg/t12408.scala +++ b/test/files/neg/t12408.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package t12408 { class Renderer[A] diff --git a/test/files/neg/t12414.scala b/test/files/neg/t12414.scala index 649fbb23e5b..187f701d601 100644 --- a/test/files/neg/t12414.scala +++ b/test/files/neg/t12414.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed trait Trait1 sealed trait Trait2 diff --git a/test/files/neg/t12414b/b_2.scala b/test/files/neg/t12414b/b_2.scala index 87f5694346e..39f17177de4 100644 --- a/test/files/neg/t12414b/b_2.scala +++ b/test/files/neg/t12414b/b_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test extends App { def test(x: Trait1): Unit = diff --git a/test/files/neg/t12433.scala b/test/files/neg/t12433.scala index c1975ca848d..885b49ff364 100644 --- a/test/files/neg/t12433.scala +++ b/test/files/neg/t12433.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:nowarn +//> using options -Wunused:nowarn import annotation.nowarn object T { @deprecated def f = 1 diff --git a/test/files/neg/t12441.scala b/test/files/neg/t12441.scala index 86b9eec048e..73cb49f2b4a 100644 --- a/test/files/neg/t12441.scala +++ b/test/files/neg/t12441.scala @@ -1,5 +1,5 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror trait T { def k(u: => Unit): Unit = u diff --git a/test/files/neg/t12494.scala b/test/files/neg/t12494.scala index 4d2f27e99b8..a54f436aba9 100644 --- a/test/files/neg/t12494.scala +++ b/test/files/neg/t12494.scala @@ -1,4 +1,4 @@ -// scalac: -Ylog:superaccessors -Ydebug +//> using options -Ylog:superaccessors -Ydebug object X { def m: Int = { trait C { diff --git a/test/files/neg/t12495.scala b/test/files/neg/t12495.scala index 5be5e3796c2..5d24b25a486 100644 --- a/test/files/neg/t12495.scala +++ b/test/files/neg/t12495.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:arg-discard,adapted-args -Wvalue-discard +//> using options -Werror -Xlint:arg-discard,adapted-args -Wvalue-discard class C { val f = (u: Unit) => println(s"[$u]") def g = f(42, 27) diff --git a/test/files/neg/t12499.scala b/test/files/neg/t12499.scala index 91f397f12b2..be5e60cbe1d 100644 --- a/test/files/neg/t12499.scala +++ b/test/files/neg/t12499.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Ystop-after:patmat -Ypatmat-exhaust-depth 30 +//> using options -Werror -Ystop-after:patmat -Ypatmat-exhaust-depth 30 sealed trait Phantom[A] {} object Phantom { diff --git a/test/files/neg/t12513/predefer_2.scala b/test/files/neg/t12513/predefer_2.scala index 6688ec5acba..1872ff9d82f 100644 --- a/test/files/neg/t12513/predefer_2.scala +++ b/test/files/neg/t12513/predefer_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:p.MyPredef,scala.Predef,scala +//> using options -Yimports:p.MyPredef,scala.Predef,scala package p { object Test extends App { diff --git a/test/files/neg/t12513b.scala b/test/files/neg/t12513b.scala index 51038b82a06..c4dc17f02a7 100644 --- a/test/files/neg/t12513b.scala +++ b/test/files/neg/t12513b.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xsource:3 +//> using options -Werror -Xsource:3 object X { type T = annotation.tailrec } object Y { type T = annotation.tailrec } diff --git a/test/files/neg/t12543.scala b/test/files/neg/t12543.scala index 3bb91693810..6d4cd1a540f 100644 --- a/test/files/neg/t12543.scala +++ b/test/files/neg/t12543.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -release 8 +//> using options -Werror -release 8 import scala.jdk.CollectionConverters._ //import jdk.CollectionConverters._ // scala/bug/issues/12566 diff --git a/test/files/neg/t12565.scala b/test/files/neg/t12565.scala index 6336f90a4dd..fdb1f023d4a 100644 --- a/test/files/neg/t12565.scala +++ b/test/files/neg/t12565.scala @@ -1,4 +1,4 @@ -// scalac: -Werror --release 8 +//> using options -Werror --release 8 // javaVersion: 9+ class C { diff --git a/test/files/neg/t12590.scala b/test/files/neg/t12590.scala index 05939132008..2339f341141 100644 --- a/test/files/neg/t12590.scala +++ b/test/files/neg/t12590.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:locals +//> using options -Werror -Wunused:locals class C { def unusedLocal = { val a = 27 diff --git a/test/files/neg/t12591.scala b/test/files/neg/t12591.scala index df6c1c8480a..c66259aa939 100644 --- a/test/files/neg/t12591.scala +++ b/test/files/neg/t12591.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:synthetics +//> using options -Werror -Wunused:synthetics trait Context[A] { def m(a: A): A = a } // Context has a member, so warn if unused object Example { diff --git a/test/files/neg/t12647/Macro_1.scala b/test/files/neg/t12647/Macro_1.scala index 748657682ee..da6431cd2ae 100644 --- a/test/files/neg/t12647/Macro_1.scala +++ b/test/files/neg/t12647/Macro_1.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/t12647/Resolve_2.scala b/test/files/neg/t12647/Resolve_2.scala index dab65c6a310..97cc4c35400 100644 --- a/test/files/neg/t12647/Resolve_2.scala +++ b/test/files/neg/t12647/Resolve_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import language.experimental.macros diff --git a/test/files/neg/t12647/Test_3.scala b/test/files/neg/t12647/Test_3.scala index 152e5ddc4aa..e2fc19f4685 100644 --- a/test/files/neg/t12647/Test_3.scala +++ b/test/files/neg/t12647/Test_3.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 object Test extends App { val resolver = new ValueResolver diff --git a/test/files/neg/t12648/LogConfig_2.scala b/test/files/neg/t12648/LogConfig_2.scala index 13d621ce035..c8ff61d95df 100644 --- a/test/files/neg/t12648/LogConfig_2.scala +++ b/test/files/neg/t12648/LogConfig_2.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint -Xsource:3 +//> using options -Werror -Xlint -Xsource:3 import annotation.* diff --git a/test/files/neg/t12690b.scala b/test/files/neg/t12690b.scala index 30b6ccab760..95cace46d19 100644 --- a/test/files/neg/t12690b.scala +++ b/test/files/neg/t12690b.scala @@ -1,5 +1,5 @@ -// scalac: -Wunused:imports -Werror +//> using options -Wunused:imports -Werror object X { val v = 27 diff --git a/test/files/neg/t12704.scala b/test/files/neg/t12704.scala index db43b888d02..d481cc21635 100644 --- a/test/files/neg/t12704.scala +++ b/test/files/neg/t12704.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class Out { sealed trait P case class K(x: Int) extends P diff --git a/test/files/neg/t12720.scala b/test/files/neg/t12720.scala index 48c659065c4..be4d3578fad 100644 --- a/test/files/neg/t12720.scala +++ b/test/files/neg/t12720.scala @@ -1,4 +1,4 @@ -// scalac: -uniqid -Werror -Wunused +//> using options -uniqid -Werror -Wunused // hide: #\d+ class C { def f(x: Int) = "" diff --git a/test/files/neg/t12728.scala b/test/files/neg/t12728.scala index 6ccb0f19d63..3b2730b7add 100644 --- a/test/files/neg/t12728.scala +++ b/test/files/neg/t12728.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint class C { val u = () diff --git a/test/files/neg/t12735a.scala b/test/files/neg/t12735a.scala index e6f998e098b..67594fcf7a1 100644 --- a/test/files/neg/t12735a.scala +++ b/test/files/neg/t12735a.scala @@ -1,4 +1,4 @@ -// scalac: -Xreporter:scala.tools.partest.nest.PlainReporter +//> using options -Xreporter:scala.tools.partest.nest.PlainReporter trait A { def x: String diff --git a/test/files/neg/t12735b.scala b/test/files/neg/t12735b.scala index a27496be6f2..3b8fa184005 100644 --- a/test/files/neg/t12735b.scala +++ b/test/files/neg/t12735b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Xreporter:scala.tools.partest.nest.PlainReporter +//> using options -Werror -Xlint -Xreporter:scala.tools.partest.nest.PlainReporter class UnusedMethod { private def m: String = diff --git a/test/files/neg/t12735c.scala b/test/files/neg/t12735c.scala index 1c8bb56b58a..8b1b3e29f6a 100644 --- a/test/files/neg/t12735c.scala +++ b/test/files/neg/t12735c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -Xreporter:scala.tools.partest.nest.PlainReporter +//> using options -Werror -Xlint -Xreporter:scala.tools.partest.nest.PlainReporter class UnusedVal { private val v: String = diff --git a/test/files/neg/t12770.scala b/test/files/neg/t12770.scala index b1059aadb9b..8119777134e 100644 --- a/test/files/neg/t12770.scala +++ b/test/files/neg/t12770.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint object Test { def doesntWarn(input: String) = input match { diff --git a/test/files/neg/t12785.scala b/test/files/neg/t12785.scala index aa1716f6dae..19609b1fa59 100644 --- a/test/files/neg/t12785.scala +++ b/test/files/neg/t12785.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import scala.Predef._ diff --git a/test/files/neg/t12799/Test_2.scala b/test/files/neg/t12799/Test_2.scala index 4f1ddfe5e3d..4b7242d971c 100644 --- a/test/files/neg/t12799/Test_2.scala +++ b/test/files/neg/t12799/Test_2.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // javaVersion: 9+ import example._ diff --git a/test/files/neg/t12800/matcher_1.scala b/test/files/neg/t12800/matcher_1.scala index 47d287a248f..186acb763fb 100644 --- a/test/files/neg/t12800/matcher_1.scala +++ b/test/files/neg/t12800/matcher_1.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xsource:3 +//> using options -Werror -Xsource:3 import JetBrains.* diff --git a/test/files/neg/t12813b.scala b/test/files/neg/t12813b.scala index da65e1b9036..bc6b1d593aa 100644 --- a/test/files/neg/t12813b.scala +++ b/test/files/neg/t12813b.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 object O { val a = 1 } diff --git a/test/files/neg/t12815.scala b/test/files/neg/t12815.scala index 945e0b18d1e..dd477e487c7 100644 --- a/test/files/neg/t12815.scala +++ b/test/files/neg/t12815.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import scala.beans.BeanProperty diff --git a/test/files/neg/t12816.scala b/test/files/neg/t12816.scala index ccac64ed576..fa9e7454316 100644 --- a/test/files/neg/t12816.scala +++ b/test/files/neg/t12816.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -Werror +//> using options -Xsource:3 -Werror trait U { def a: Int = 0 diff --git a/test/files/neg/t12816b/B.scala b/test/files/neg/t12816b/B.scala index f4c12477b26..1ea81921e11 100644 --- a/test/files/neg/t12816b/B.scala +++ b/test/files/neg/t12816b/B.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -Werror +//> using options -Xsource:3 -Werror package p { object c diff --git a/test/files/neg/t12851b/C_2.scala b/test/files/neg/t12851b/C_2.scala index c6d4b70f296..39536ddec31 100644 --- a/test/files/neg/t12851b/C_2.scala +++ b/test/files/neg/t12851b/C_2.scala @@ -1,2 +1,2 @@ -// scalac: -Werror +//> using options -Werror class C extends T1 with T2 diff --git a/test/files/neg/t12879/Test.scala b/test/files/neg/t12879/Test.scala index 72814765e9f..d3e75556092 100644 --- a/test/files/neg/t12879/Test.scala +++ b/test/files/neg/t12879/Test.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror +//> using options -deprecation -Werror class C { val x: A = A.Foo val y: A = A.Bar diff --git a/test/files/neg/t1371.scala b/test/files/neg/t1371.scala index f90942fb345..7a674047be3 100644 --- a/test/files/neg/t1371.scala +++ b/test/files/neg/t1371.scala @@ -1,3 +1,3 @@ -// scalac: -Yrangepos +//> using options -Yrangepos trait A[T <: (_)] diff --git a/test/files/neg/t1503.scala b/test/files/neg/t1503.scala index e5be752475a..1fe63fdaded 100644 --- a/test/files/neg/t1503.scala +++ b/test/files/neg/t1503.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror -Wvalue-discard +//> using options -Xlint -Werror -Wvalue-discard // object Whatever { override def equals(x: Any) = true diff --git a/test/files/neg/t1909-object.scala b/test/files/neg/t1909-object.scala index 6b6e0247557..cbce3bc84a7 100644 --- a/test/files/neg/t1909-object.scala +++ b/test/files/neg/t1909-object.scala @@ -1,4 +1,4 @@ -// scalac: -Xdev -Xfatal-warnings +//> using options -Xdev -Xfatal-warnings // class Kaboom(a: Any) { def this() = { diff --git a/test/files/neg/t2442/t2442.scala b/test/files/neg/t2442/t2442.scala index 3909905229c..738e1248593 100644 --- a/test/files/neg/t2442/t2442.scala +++ b/test/files/neg/t2442/t2442.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class Test { import MyEnum._ diff --git a/test/files/neg/t2458/test.scala b/test/files/neg/t2458/test.scala index a2cae880a15..bc0d2595798 100644 --- a/test/files/neg/t2458/test.scala +++ b/test/files/neg/t2458/test.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 import q.X package p { diff --git a/test/files/neg/t2458b/test.scala b/test/files/neg/t2458b/test.scala index 087aca4668b..767187d1427 100644 --- a/test/files/neg/t2458b/test.scala +++ b/test/files/neg/t2458b/test.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 import q._ package q.qq { diff --git a/test/files/neg/t2458c/test.scala b/test/files/neg/t2458c/test.scala index ec082fadf31..8e5ea67c6de 100644 --- a/test/files/neg/t2458c/test.scala +++ b/test/files/neg/t2458c/test.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 import q.X._ package p { diff --git a/test/files/neg/t2462b.scala b/test/files/neg/t2462b.scala index 5c80e62dfd3..d1c826d8164 100644 --- a/test/files/neg/t2462b.scala +++ b/test/files/neg/t2462b.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:implicit-not-found -Xfatal-warnings +//> using options -Xlint:implicit-not-found -Xfatal-warnings // package test diff --git a/test/files/neg/t2462c.scala b/test/files/neg/t2462c.scala index d059a47ceb0..f229a76e577 100644 --- a/test/files/neg/t2462c.scala +++ b/test/files/neg/t2462c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // import annotation._ diff --git a/test/files/neg/t2796.scala b/test/files/neg/t2796.scala index 4bf0d2168ba..7a718fc0cad 100644 --- a/test/files/neg/t2796.scala +++ b/test/files/neg/t2796.scala @@ -1,5 +1,5 @@ // -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // trait Base { val abstractVal: String diff --git a/test/files/neg/t2799.scala b/test/files/neg/t2799.scala index abf78ab17a2..85bce2a27b9 100644 --- a/test/files/neg/t2799.scala +++ b/test/files/neg/t2799.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror @deprecated("other mother", "") trait T[A] diff --git a/test/files/neg/t284.scala b/test/files/neg/t284.scala index 26fd2016755..40118ca2961 100644 --- a/test/files/neg/t284.scala +++ b/test/files/neg/t284.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait B[T] { def f1(a: T): Unit { } diff --git a/test/files/neg/t3098/a.scala b/test/files/neg/t3098/a.scala index 9f8fb295f5c..d2ee7048fd5 100644 --- a/test/files/neg/t3098/a.scala +++ b/test/files/neg/t3098/a.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed trait T trait A extends T diff --git a/test/files/neg/t3420b.scala b/test/files/neg/t3420b.scala index 33d90759414..a6c9ff90170 100644 --- a/test/files/neg/t3420b.scala +++ b/test/files/neg/t3420b.scala @@ -1,5 +1,5 @@ -// scalac: --release 8 -opt:inline:** -Wopt -Werror +//> using options --release 8 -opt:inline:** -Wopt -Werror // class C { val cv = Map[Int, Int](1 -> 2) diff --git a/test/files/neg/t3683a.scala b/test/files/neg/t3683a.scala index 8047d4b172a..cf06ef26094 100644 --- a/test/files/neg/t3683a.scala +++ b/test/files/neg/t3683a.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait Foo sealed trait Bar extends Foo diff --git a/test/files/neg/t3692-new.scala b/test/files/neg/t3692-new.scala index 063e141cb4a..3a3531270cd 100644 --- a/test/files/neg/t3692-new.scala +++ b/test/files/neg/t3692-new.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // import scala.reflect.{ClassTag, classTag} import java.lang.Integer diff --git a/test/files/neg/t4302.scala b/test/files/neg/t4302.scala index 6498a0f29ce..233250d212d 100644 --- a/test/files/neg/t4302.scala +++ b/test/files/neg/t4302.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def hasMatch[T](x: AnyRef) = x.isInstanceOf[T] diff --git a/test/files/neg/t4440.scala b/test/files/neg/t4440.scala index 8fe7346e315..21d99b89d80 100644 --- a/test/files/neg/t4440.scala +++ b/test/files/neg/t4440.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // constructors used to drop outer fields when they were not accessed // however, how can you know (respecting separate compilation) that they're not accessed!? diff --git a/test/files/neg/t4691_exhaust_extractor.scala b/test/files/neg/t4691_exhaust_extractor.scala index 683aca76f7a..c1f8bd498ab 100644 --- a/test/files/neg/t4691_exhaust_extractor.scala +++ b/test/files/neg/t4691_exhaust_extractor.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait Foo class Bar1 extends Foo diff --git a/test/files/neg/t4701.scala b/test/files/neg/t4701.scala index 54ec087dd07..8b62ed14d7b 100644 --- a/test/files/neg/t4701.scala +++ b/test/files/neg/t4701.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos trait HL[A] object HN { def :: [A](x: A): HL[A] = new HL[A] {} diff --git a/test/files/neg/t4749.scala b/test/files/neg/t4749.scala index 858937f7874..f9521d47ddc 100644 --- a/test/files/neg/t4749.scala +++ b/test/files/neg/t4749.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // package bippy { object Fail1 { diff --git a/test/files/neg/t4762.scala b/test/files/neg/t4762.scala index 7fb73ee1378..c56924bea19 100644 --- a/test/files/neg/t4762.scala +++ b/test/files/neg/t4762.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings // // https://github.com/scala/bug/issues/4762 diff --git a/test/files/neg/t4851/S.scala b/test/files/neg/t4851/S.scala index ba22f93452e..3ebe93a9d77 100644 --- a/test/files/neg/t4851/S.scala +++ b/test/files/neg/t4851/S.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:adapted-args -Xfatal-warnings -deprecation +//> using options -Xlint:adapted-args -Xfatal-warnings -deprecation // object Test { val x1 = new J diff --git a/test/files/neg/t5182.scala b/test/files/neg/t5182.scala index 32f2ed53483..2eeb0960cfa 100644 --- a/test/files/neg/t5182.scala +++ b/test/files/neg/t5182.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class test { @java.lang.Deprecated(qwe = "wer") def ok(q:Int) = 1 diff --git a/test/files/neg/t5197.scala b/test/files/neg/t5197.scala index 8e568ea4766..61f2a535220 100644 --- a/test/files/neg/t5197.scala +++ b/test/files/neg/t5197.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -feature +//> using options -Werror -feature // Periodic reminder that the feature is not required for implicit function values. //import scala.language.implicitConversions diff --git a/test/files/neg/t5265a.scala b/test/files/neg/t5265a.scala index 80b127e1ade..42984206bdf 100644 --- a/test/files/neg/t5265a.scala +++ b/test/files/neg/t5265a.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror trait T[A] class C[A: T] diff --git a/test/files/neg/t5265b.scala b/test/files/neg/t5265b.scala index c85add2bb44..45b2170fc7d 100644 --- a/test/files/neg/t5265b.scala +++ b/test/files/neg/t5265b.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 trait T[A] class C[A: T] diff --git a/test/files/neg/t5352.scala b/test/files/neg/t5352.scala index 5e54d345b36..2dd99003d0b 100644 --- a/test/files/neg/t5352.scala +++ b/test/files/neg/t5352.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object boop { abstract class Bar { protected def f(): Any } diff --git a/test/files/neg/t5365.scala b/test/files/neg/t5365.scala index 25a6dcc8cf6..087635454d3 100644 --- a/test/files/neg/t5365.scala +++ b/test/files/neg/t5365.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings class C { def nonExhautiveIfWeAssumeGuardsTrueOrFalse(x: Option[Int]): Int = x match { case Some(n) if n % 2 == 0 => n diff --git a/test/files/neg/t5365b.scala b/test/files/neg/t5365b.scala index 25a6dcc8cf6..087635454d3 100644 --- a/test/files/neg/t5365b.scala +++ b/test/files/neg/t5365b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings class C { def nonExhautiveIfWeAssumeGuardsTrueOrFalse(x: Option[Int]): Int = x match { case Some(n) if n % 2 == 0 => n diff --git a/test/files/neg/t5365c.scala b/test/files/neg/t5365c.scala index d79cd905c0d..3c460b59d56 100644 --- a/test/files/neg/t5365c.scala +++ b/test/files/neg/t5365c.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:strict-unsealed-patmat +//> using options -Xfatal-warnings -Xlint:strict-unsealed-patmat object C { trait Z final case class Q(i: Int) extends Z diff --git a/test/files/neg/t5365d.scala b/test/files/neg/t5365d.scala index eab29e7ecea..6f84c2eaf2b 100644 --- a/test/files/neg/t5365d.scala +++ b/test/files/neg/t5365d.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings object D { sealed trait T final case class C(i: Int) extends T diff --git a/test/files/neg/t5365e.scala b/test/files/neg/t5365e.scala index 5975587cbf9..f06c70b11a6 100644 --- a/test/files/neg/t5365e.scala +++ b/test/files/neg/t5365e.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings sealed trait Exh final case class Foo(xs: String*) extends Exh final case class Bar(x: String) extends Exh diff --git a/test/files/neg/t5426.scala b/test/files/neg/t5426.scala index 14a24529142..de8480f8b82 100644 --- a/test/files/neg/t5426.scala +++ b/test/files/neg/t5426.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A { def f1 = Some(5) == 5 diff --git a/test/files/neg/t5440.scala b/test/files/neg/t5440.scala index c0322af5584..dbbad683338 100644 --- a/test/files/neg/t5440.scala +++ b/test/files/neg/t5440.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def merge(list1: List[Long], list2: List[Long]): Boolean = diff --git a/test/files/neg/t5507.scala b/test/files/neg/t5507.scala index 912fad66702..63a9e6604de 100644 --- a/test/files/neg/t5507.scala +++ b/test/files/neg/t5507.scala @@ -1,5 +1,5 @@ // -// scalac: -Xlint:unit-special -Werror +//> using options -Xlint:unit-special -Werror // warn once final class C[@specialized A, @specialized B](a: A, b: B) diff --git a/test/files/neg/t5606.scala b/test/files/neg/t5606.scala index c44b1e96e37..fed05b645f6 100644 --- a/test/files/neg/t5606.scala +++ b/test/files/neg/t5606.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // was: _ taken as ident of type param, but poor interactions below case class CaseTest[_](someData: String) diff --git a/test/files/neg/t5606b.scala b/test/files/neg/t5606b.scala index 3931de26d43..eef80730077 100644 --- a/test/files/neg/t5606b.scala +++ b/test/files/neg/t5606b.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror // // was: _ taken as ident of type param, now a fresh name case class CaseTest[_](someData: String) diff --git a/test/files/neg/t5663-badwarneq.scala b/test/files/neg/t5663-badwarneq.scala index f920d6e88f4..4646b9fd011 100644 --- a/test/files/neg/t5663-badwarneq.scala +++ b/test/files/neg/t5663-badwarneq.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // alias diff --git a/test/files/neg/t5675.scala b/test/files/neg/t5675.scala index baaabaf89ef..1e414307798 100644 --- a/test/files/neg/t5675.scala +++ b/test/files/neg/t5675.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // without -feature, don't double-count the warning // diff --git a/test/files/neg/t5689.scala b/test/files/neg/t5689.scala index e973c6f74c2..23462a860ee 100644 --- a/test/files/neg/t5689.scala +++ b/test/files/neg/t5689.scala @@ -1,4 +1,4 @@ -// scalac: -language:experimental.macros +//> using options -language:experimental.macros // import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/t5691.scala b/test/files/neg/t5691.scala index 42cc75e45f0..3624e200910 100644 --- a/test/files/neg/t5691.scala +++ b/test/files/neg/t5691.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:type-parameter-shadow -language:higherKinds -Xfatal-warnings +//> using options -Xlint:type-parameter-shadow -language:higherKinds -Xfatal-warnings // class B { diff --git a/test/files/neg/t5715.scala b/test/files/neg/t5715.scala index fe76dee9b53..5ea9c2a3af7 100644 --- a/test/files/neg/t5715.scala +++ b/test/files/neg/t5715.scala @@ -1,5 +1,5 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror package example diff --git a/test/files/neg/t5762.scala b/test/files/neg/t5762.scala index 8290920d0e7..a2341860f60 100644 --- a/test/files/neg/t5762.scala +++ b/test/files/neg/t5762.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class D[-A] diff --git a/test/files/neg/t5830.scala b/test/files/neg/t5830.scala index 9c46e2bcd90..8a3f96485f9 100644 --- a/test/files/neg/t5830.scala +++ b/test/files/neg/t5830.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.annotation.switch diff --git a/test/files/neg/t5898.scala b/test/files/neg/t5898.scala index b4eed38e338..23057bc7b09 100644 --- a/test/files/neg/t5898.scala +++ b/test/files/neg/t5898.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:valpattern -Xfatal-warnings +//> using options -Xlint:valpattern -Xfatal-warnings // sealed trait T case class C(i: Int) extends T diff --git a/test/files/neg/t5956.scala b/test/files/neg/t5956.scala index 3c189fe8e54..507e721f404 100644 --- a/test/files/neg/t5956.scala +++ b/test/files/neg/t5956.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // object O { case class C[T](); class C() } object T { case class C[T](); case class C() } diff --git a/test/files/neg/t6011.scala b/test/files/neg/t6011.scala index 3cd7f7c6250..c909c4e4691 100644 --- a/test/files/neg/t6011.scala +++ b/test/files/neg/t6011.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def f(ch: Char): Any = ch match { diff --git a/test/files/neg/t6048.scala b/test/files/neg/t6048.scala index e21bfeee083..431cb6adde6 100644 --- a/test/files/neg/t6048.scala +++ b/test/files/neg/t6048.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A { def f1(x: Int) = x match { diff --git a/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala b/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala index 65303fb6e6d..c9d33756d6a 100644 --- a/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala +++ b/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala @@ -1,4 +1,4 @@ -// scalac: -explaintypes +//> using options -explaintypes import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/t6123-explaintypes-macros/Macros.scala b/test/files/neg/t6123-explaintypes-macros/Macros.scala index 21979a86207..a6feb5b88db 100644 --- a/test/files/neg/t6123-explaintypes-macros/Macros.scala +++ b/test/files/neg/t6123-explaintypes-macros/Macros.scala @@ -1,4 +1,4 @@ -// scalac: -explaintypes +//> using options -explaintypes import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/neg/t6159.scala b/test/files/neg/t6159.scala index 2e7477a299c..71abea905e5 100644 --- a/test/files/neg/t6159.scala +++ b/test/files/neg/t6159.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // like test/files/pos/t6159.scala // but with T2 not private trait A { diff --git a/test/files/neg/t6162-inheritance/defn.scala b/test/files/neg/t6162-inheritance/defn.scala index 8b77690c0ac..673ea4dbfd1 100644 --- a/test/files/neg/t6162-inheritance/defn.scala +++ b/test/files/neg/t6162-inheritance/defn.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Werror +//> using options -deprecation -Werror package scala.t6126 @deprecatedInheritance("`Foo` will be made final in a future version.", "2.10.0") diff --git a/test/files/neg/t6162-overriding.scala b/test/files/neg/t6162-overriding.scala index 4667536ae9f..17932569c12 100644 --- a/test/files/neg/t6162-overriding.scala +++ b/test/files/neg/t6162-overriding.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation // package scala.t6162 diff --git a/test/files/neg/t6217.scala b/test/files/neg/t6217.scala index 931fe8c1393..58cce7844fb 100644 --- a/test/files/neg/t6217.scala +++ b/test/files/neg/t6217.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package p { package _root_ { package scala { diff --git a/test/files/neg/t6217b.scala b/test/files/neg/t6217b.scala index a33cae6eca7..923effa9417 100644 --- a/test/files/neg/t6217b.scala +++ b/test/files/neg/t6217b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package p package _root_ object Test { diff --git a/test/files/neg/t6217c.scala b/test/files/neg/t6217c.scala index f27162811d9..439aad07c10 100644 --- a/test/files/neg/t6217c.scala +++ b/test/files/neg/t6217c.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package b { class B } diff --git a/test/files/neg/t6264.scala b/test/files/neg/t6264.scala index fdef3eb18de..f7be7eff0f0 100644 --- a/test/files/neg/t6264.scala +++ b/test/files/neg/t6264.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Foo { def foo(x: AnyRef): Unit = { diff --git a/test/files/neg/t6276.scala b/test/files/neg/t6276.scala index 76f8a00cc68..d236ee69885 100644 --- a/test/files/neg/t6276.scala +++ b/test/files/neg/t6276.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def foo(a: Int, b: Int, c: Int): Unit = { diff --git a/test/files/neg/t6446-additional/sample_2.scala b/test/files/neg/t6446-additional/sample_2.scala index 597b70cc65a..f9d2a3e5236 100644 --- a/test/files/neg/t6446-additional/sample_2.scala +++ b/test/files/neg/t6446-additional/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Vphases +//> using options -Xplugin:. -Vphases package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t6446-list/sample_2.scala b/test/files/neg/t6446-list/sample_2.scala index e3bf6cd1460..55d8bb1625d 100644 --- a/test/files/neg/t6446-list/sample_2.scala +++ b/test/files/neg/t6446-list/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-list +//> using options -Xplugin:. -Xplugin-list package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t6446-missing/sample_2.scala b/test/files/neg/t6446-missing/sample_2.scala index 597b70cc65a..f9d2a3e5236 100644 --- a/test/files/neg/t6446-missing/sample_2.scala +++ b/test/files/neg/t6446-missing/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Vphases +//> using options -Xplugin:. -Vphases package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t6446-show-phases.scala b/test/files/neg/t6446-show-phases.scala index d0bd64b2097..016067364f1 100644 --- a/test/files/neg/t6446-show-phases.scala +++ b/test/files/neg/t6446-show-phases.scala @@ -1,4 +1,4 @@ -// scalac: -Vphases +//> using options -Vphases // // testing compiler flag output only diff --git a/test/files/neg/t6534.scala b/test/files/neg/t6534.scala index 14144fd375b..c80af5fc4c4 100644 --- a/test/files/neg/t6534.scala +++ b/test/files/neg/t6534.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint +//> using options -Xlint // trait Foo extends Any { override def equals(x: Any) = false } trait Ding extends Any { override def hashCode = -1 } diff --git a/test/files/neg/t6567.scala b/test/files/neg/t6567.scala index 43d46231ca4..3e300f9f705 100644 --- a/test/files/neg/t6567.scala +++ b/test/files/neg/t6567.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:option-implicit -Xfatal-warnings +//> using options -Xlint:option-implicit -Xfatal-warnings // class A class B diff --git a/test/files/neg/t6582_exhaust_big.scala b/test/files/neg/t6582_exhaust_big.scala index ee0649c2b4e..6f53cd24f28 100644 --- a/test/files/neg/t6582_exhaust_big.scala +++ b/test/files/neg/t6582_exhaust_big.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class Z object Z { diff --git a/test/files/neg/t6595.scala b/test/files/neg/t6595.scala index f64275ba794..4cdc0f6d89a 100644 --- a/test/files/neg/t6595.scala +++ b/test/files/neg/t6595.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation // import scala.annotation.switch diff --git a/test/files/neg/t6666.scala b/test/files/neg/t6666.scala index 077a79083d0..cf3d0010c96 100644 --- a/test/files/neg/t6666.scala +++ b/test/files/neg/t6666.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline // class C(a: Any) object F { diff --git a/test/files/neg/t6666c.scala b/test/files/neg/t6666c.scala index 693eeff2eee..7a8ec5e23b3 100644 --- a/test/files/neg/t6666c.scala +++ b/test/files/neg/t6666c.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline // class C(a: Any) class D extends C({def x = 0; object X { x }}) diff --git a/test/files/neg/t6675.scala b/test/files/neg/t6675.scala index 879fc6d5a41..7cc97f36cde 100644 --- a/test/files/neg/t6675.scala +++ b/test/files/neg/t6675.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object X { def unapply(s: String): Option[(Int,Int,Int)] = Some((1,2,3)) diff --git a/test/files/neg/t6675b.scala b/test/files/neg/t6675b.scala index 7ade88fbf2b..2f494e08b53 100644 --- a/test/files/neg/t6675b.scala +++ b/test/files/neg/t6675b.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xlint +//> using options -deprecation -Xlint // object LeftOrRight { def unapply[A](value: Either[A, A]): Option[A] = value match { diff --git a/test/files/neg/t6714.scala b/test/files/neg/t6714.scala index 9a2b229588f..b1b92e4aadf 100644 --- a/test/files/neg/t6714.scala +++ b/test/files/neg/t6714.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // case class A(a: Int, index: Int) { diff --git a/test/files/neg/t6902.scala b/test/files/neg/t6902.scala index e2e7a5084db..680e6108481 100644 --- a/test/files/neg/t6902.scala +++ b/test/files/neg/t6902.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { Some(Some(1)) collect { diff --git a/test/files/neg/t7014/t7014_2.scala b/test/files/neg/t7014/t7014_2.scala index f8c903128d1..94f8f1c0523 100644 --- a/test/files/neg/t7014/t7014_2.scala +++ b/test/files/neg/t7014/t7014_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package t7014 import ThreadSafetyLevel_1.COMPLETELY_THREADSAFE // refer to annotation so it gets parsed diff --git a/test/files/neg/t7020.scala b/test/files/neg/t7020.scala index 871938be8d8..f323456a9bc 100644 --- a/test/files/neg/t7020.scala +++ b/test/files/neg/t7020.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { // warning was non-deterministic diff --git a/test/files/neg/t7110.scala b/test/files/neg/t7110.scala index 3b62a05ac6b..66aa076681c 100644 --- a/test/files/neg/t7110.scala +++ b/test/files/neg/t7110.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { try { ??? } // warn diff --git a/test/files/neg/t7171.scala b/test/files/neg/t7171.scala index f259826e634..aa3aaa9ef32 100644 --- a/test/files/neg/t7171.scala +++ b/test/files/neg/t7171.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait T { final case class A() diff --git a/test/files/neg/t7171b.scala b/test/files/neg/t7171b.scala index 94cfa7826d1..236603c02ce 100644 --- a/test/files/neg/t7171b.scala +++ b/test/files/neg/t7171b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait T { final case class A() diff --git a/test/files/neg/t7187-3.scala b/test/files/neg/t7187-3.scala index a3bc502ba6b..347c7f0f6c1 100644 --- a/test/files/neg/t7187-3.scala +++ b/test/files/neg/t7187-3.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -Xlint:eta-zero +//> using options -Xsource:3 -Xlint:eta-zero // trait AcciSamZero { def apply(): Int } diff --git a/test/files/neg/t7187-deprecation.scala b/test/files/neg/t7187-deprecation.scala index 7808df726e5..8ed9bb9aec1 100644 --- a/test/files/neg/t7187-deprecation.scala +++ b/test/files/neg/t7187-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 -deprecation -Werror +//> using options -Xsource:3 -deprecation -Werror // trait AcciSamZero { def apply(): Int } diff --git a/test/files/neg/t7187.scala b/test/files/neg/t7187.scala index f58d7e49cb9..42ad461bf8b 100644 --- a/test/files/neg/t7187.scala +++ b/test/files/neg/t7187.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation,eta-zero,eta-sam +//> using options -Xlint:deprecation,eta-zero,eta-sam // trait AcciSamOne { def apply(x: Int): Int } diff --git a/test/files/neg/t7285.scala b/test/files/neg/t7285.scala index 6c31a7b9690..9204c1ded39 100644 --- a/test/files/neg/t7285.scala +++ b/test/files/neg/t7285.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class Base diff --git a/test/files/neg/t7290.scala b/test/files/neg/t7290.scala index fcc5a561db8..1d3c774119a 100644 --- a/test/files/neg/t7290.scala +++ b/test/files/neg/t7290.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test extends App { val y = (0: Int) match { diff --git a/test/files/neg/t7369.scala b/test/files/neg/t7369.scala index 094a7d576b3..91ba91ffee3 100644 --- a/test/files/neg/t7369.scala +++ b/test/files/neg/t7369.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { val X, Y = true diff --git a/test/files/neg/t7494-after-terminal/sample_2.scala b/test/files/neg/t7494-after-terminal/sample_2.scala index 774b9aed454..d2583c1b552 100644 --- a/test/files/neg/t7494-after-terminal/sample_2.scala +++ b/test/files/neg/t7494-after-terminal/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:afterterminal +//> using options -Xplugin:. -Xplugin-require:afterterminal package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7494-before-parser/sample_2.scala b/test/files/neg/t7494-before-parser/sample_2.scala index 10b67355cc5..23bbb066b83 100644 --- a/test/files/neg/t7494-before-parser/sample_2.scala +++ b/test/files/neg/t7494-before-parser/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:beforeparser +//> using options -Xplugin:. -Xplugin-require:beforeparser package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7494-multi-right-after/sample_2.scala b/test/files/neg/t7494-multi-right-after/sample_2.scala index 9bf136ad27a..2c9cfa861a9 100644 --- a/test/files/neg/t7494-multi-right-after/sample_2.scala +++ b/test/files/neg/t7494-multi-right-after/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:multi-rafter +//> using options -Xplugin:. -Xplugin-require:multi-rafter package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7494-no-options/sample_2.scala b/test/files/neg/t7494-no-options/sample_2.scala index d756032b43c..47a206b7b3d 100644 --- a/test/files/neg/t7494-no-options/sample_2.scala +++ b/test/files/neg/t7494-no-options/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Vphases -P:ploogin:inploog +//> using options -Xplugin:. -Vphases -P:ploogin:inploog package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7494-right-after-before/sample_2.scala b/test/files/neg/t7494-right-after-before/sample_2.scala index ebe48c4e891..dac3d695020 100644 --- a/test/files/neg/t7494-right-after-before/sample_2.scala +++ b/test/files/neg/t7494-right-after-before/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:rafter-before-1 +//> using options -Xplugin:. -Xplugin-require:rafter-before-1 package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7494-right-after-terminal/sample_2.scala b/test/files/neg/t7494-right-after-terminal/sample_2.scala index c705cf912e0..e0f367078bf 100644 --- a/test/files/neg/t7494-right-after-terminal/sample_2.scala +++ b/test/files/neg/t7494-right-after-terminal/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:rightafterterminal +//> using options -Xplugin:. -Xplugin-require:rightafterterminal package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7622-cyclic-dependency/sample_2.scala b/test/files/neg/t7622-cyclic-dependency/sample_2.scala index 3d5db665f8c..798bebc4a23 100644 --- a/test/files/neg/t7622-cyclic-dependency/sample_2.scala +++ b/test/files/neg/t7622-cyclic-dependency/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:cyclicdependency +//> using options -Xplugin:. -Xplugin-require:cyclicdependency package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7622-missing-dependency/sample_2.scala b/test/files/neg/t7622-missing-dependency/sample_2.scala index e03e32d9a7f..9bff3616a84 100644 --- a/test/files/neg/t7622-missing-dependency/sample_2.scala +++ b/test/files/neg/t7622-missing-dependency/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:myplugin +//> using options -Xplugin:. -Xplugin-require:myplugin package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7622-missing-required.scala b/test/files/neg/t7622-missing-required.scala index 0025feb680a..76d381981d6 100644 --- a/test/files/neg/t7622-missing-required.scala +++ b/test/files/neg/t7622-missing-required.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin-require:special-plugin +//> using options -Xplugin-require:special-plugin // // the amazing features of this trait diff --git a/test/files/neg/t7622-multi-followers/sample_2.scala b/test/files/neg/t7622-multi-followers/sample_2.scala index 392e2ad7c0c..941a6da13e3 100644 --- a/test/files/neg/t7622-multi-followers/sample_2.scala +++ b/test/files/neg/t7622-multi-followers/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:multi +//> using options -Xplugin:. -Xplugin-require:multi package sample // just a sample that is compiled with the sample plugin enabled diff --git a/test/files/neg/t7623.scala b/test/files/neg/t7623.scala index fb36d0b5d73..8fae4fcf13f 100644 --- a/test/files/neg/t7623.scala +++ b/test/files/neg/t7623.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:stars-align -Xfatal-warnings +//> using options -Xlint:stars-align -Xfatal-warnings // diff --git a/test/files/neg/t7669.scala b/test/files/neg/t7669.scala index 7ad88eba563..2033b37b89a 100644 --- a/test/files/neg/t7669.scala +++ b/test/files/neg/t7669.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { diff --git a/test/files/neg/t7721.scala b/test/files/neg/t7721.scala index 61b66503b5a..7d1b40ad645 100644 --- a/test/files/neg/t7721.scala +++ b/test/files/neg/t7721.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.language.reflectiveCalls diff --git a/test/files/neg/t7756b.scala b/test/files/neg/t7756b.scala index b3364aa8608..6feab9ba5c8 100644 --- a/test/files/neg/t7756b.scala +++ b/test/files/neg/t7756b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { 0 match { diff --git a/test/files/neg/t7783.scala b/test/files/neg/t7783.scala index c9412fe8cb7..85ae75dafd1 100644 --- a/test/files/neg/t7783.scala +++ b/test/files/neg/t7783.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object O { class C; @deprecated("", "") type D = C; def foo: Seq[D] = Nil } diff --git a/test/files/neg/t7848-interp-warn.scala b/test/files/neg/t7848-interp-warn.scala index af087ff1ac5..f3eac512840 100644 --- a/test/files/neg/t7848-interp-warn.scala +++ b/test/files/neg/t7848-interp-warn.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:missing-interpolator -Xfatal-warnings +//> using options -Xlint:missing-interpolator -Xfatal-warnings // package test diff --git a/test/files/neg/t7860.scala b/test/files/neg/t7860.scala index 905dc3854f7..7eaf1f7b09b 100644 --- a/test/files/neg/t7860.scala +++ b/test/files/neg/t7860.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Ywarn-unused:privates +//> using options -Xfatal-warnings -Ywarn-unused:privates // class Test diff --git a/test/files/neg/t7984.scala b/test/files/neg/t7984.scala index 9e6c5e6b9d5..c53dd1633eb 100644 --- a/test/files/neg/t7984.scala +++ b/test/files/neg/t7984.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Test { type ListInt = List[Int] diff --git a/test/files/neg/t8015-ffb.scala b/test/files/neg/t8015-ffb.scala index 7fd2d9ea91d..d94e4d6353f 100644 --- a/test/files/neg/t8015-ffb.scala +++ b/test/files/neg/t8015-ffb.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings // trait G { diff --git a/test/files/neg/t8178.scala b/test/files/neg/t8178.scala index bc5804577d7..37595cc8306 100644 --- a/test/files/neg/t8178.scala +++ b/test/files/neg/t8178.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings sealed trait Fails case class VarArgs1(a: String*) extends Fails case class FailsChild2(a: Seq[String]) extends Fails diff --git a/test/files/neg/t8265.scala b/test/files/neg/t8265.scala index ae4e64b8ba4..d7896cde87d 100644 --- a/test/files/neg/t8265.scala +++ b/test/files/neg/t8265.scala @@ -1,3 +1,3 @@ -// scalac: -language:higherKinds +//> using options -language:higherKinds // class Foo[+CC[X]] { type Coll = CC[_] } diff --git a/test/files/neg/t8417.scala b/test/files/neg/t8417.scala index 961514d9eb7..8f37043ce88 100644 --- a/test/files/neg/t8417.scala +++ b/test/files/neg/t8417.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:adapted-args +//> using options -Xfatal-warnings -Xlint:adapted-args // diff --git a/test/files/neg/t8430.scala b/test/files/neg/t8430.scala index da1b4eefbcc..972aeea3fd9 100644 --- a/test/files/neg/t8430.scala +++ b/test/files/neg/t8430.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Ypatmat-exhaust-depth off +//> using options -Xfatal-warnings -Ypatmat-exhaust-depth off // sealed trait CL3Literal case object IntLit extends CL3Literal diff --git a/test/files/neg/t8450.scala b/test/files/neg/t8450.scala index a1c5de01ce7..55f60ecd61d 100644 --- a/test/files/neg/t8450.scala +++ b/test/files/neg/t8450.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-numeric-widen -Xfatal-warnings +//> using options -Ywarn-numeric-widen -Xfatal-warnings // trait Foo diff --git a/test/files/neg/t8511.scala b/test/files/neg/t8511.scala index 6d96eda0b0e..9be381769f1 100644 --- a/test/files/neg/t8511.scala +++ b/test/files/neg/t8511.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed trait Expr final case class Foo(other: Option[String]) extends Expr final case class Bar(someConstant: String) extends Expr diff --git a/test/files/neg/t8525.scala b/test/files/neg/t8525.scala index 606b473983b..96d5e3a51b4 100644 --- a/test/files/neg/t8525.scala +++ b/test/files/neg/t8525.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:-missing-interpolator -Xlint +//> using options -Xfatal-warnings -Xlint:-missing-interpolator -Xlint // class Named(var name: String) diff --git a/test/files/neg/t8597.scala b/test/files/neg/t8597.scala index b5925c48a1c..81503253972 100644 --- a/test/files/neg/t8597.scala +++ b/test/files/neg/t8597.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Unchecked[C] { def nowarn[T] = (null: Any) match { case _: Some[T] => } // warn (did not warn due to scala/bug#8597) diff --git a/test/files/neg/t8597b.scala b/test/files/neg/t8597b.scala index 26b3f97c150..4a4f38d79d3 100644 --- a/test/files/neg/t8597b.scala +++ b/test/files/neg/t8597b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Unchecked { (null: Any) match { diff --git a/test/files/neg/t8610-arg.scala b/test/files/neg/t8610-arg.scala index 553a164201e..38079601999 100644 --- a/test/files/neg/t8610-arg.scala +++ b/test/files/neg/t8610-arg.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint nullary-unit +//> using options -Xfatal-warnings -Xlint nullary-unit // class Named(var name: String) diff --git a/test/files/neg/t8610.scala b/test/files/neg/t8610.scala index 8388d6f4368..62443d2af27 100644 --- a/test/files/neg/t8610.scala +++ b/test/files/neg/t8610.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint +//> using options -Xfatal-warnings -Xlint // class Named(var name: String) diff --git a/test/files/neg/t8650.scala b/test/files/neg/t8650.scala index b05d3a1d3ba..98b33b116ab 100644 --- a/test/files/neg/t8650.scala +++ b/test/files/neg/t8650.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint object Strings { final val greeting = "hello" diff --git a/test/files/neg/t8650b.scala b/test/files/neg/t8650b.scala index c694791320b..217b0fd1845 100644 --- a/test/files/neg/t8650b.scala +++ b/test/files/neg/t8650b.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint object Strings { final val greeting = "hello" diff --git a/test/files/neg/t8685.scala b/test/files/neg/t8685.scala index 0cba602194e..af9db61ea9c 100644 --- a/test/files/neg/t8685.scala +++ b/test/files/neg/t8685.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // diff --git a/test/files/neg/t8700a/Bar.scala b/test/files/neg/t8700a/Bar.scala index fce3c061f78..3055c25042e 100644 --- a/test/files/neg/t8700a/Bar.scala +++ b/test/files/neg/t8700a/Bar.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Bar { def bar1(foo: Foo) = foo match { case Foo.A => 1 diff --git a/test/files/neg/t8700b/Bar_2.scala b/test/files/neg/t8700b/Bar_2.scala index bc61137a5af..c7f5c496671 100644 --- a/test/files/neg/t8700b/Bar_2.scala +++ b/test/files/neg/t8700b/Bar_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // object Bar { def bar1(foo: Foo) = foo match { diff --git a/test/files/neg/t8704.scala b/test/files/neg/t8704.scala index aebc7162dea..37614452f4f 100644 --- a/test/files/neg/t8704.scala +++ b/test/files/neg/t8704.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-extra-implicit +//> using options -Ywarn-extra-implicit // diff --git a/test/files/neg/t8731.scala b/test/files/neg/t8731.scala index fd85fbe42ae..c1015396a1f 100644 --- a/test/files/neg/t8731.scala +++ b/test/files/neg/t8731.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class C { // not a compile-time constant due to return type diff --git a/test/files/neg/t8777.scala b/test/files/neg/t8777.scala index bd853d7daec..8d8ad0fa921 100644 --- a/test/files/neg/t8777.scala +++ b/test/files/neg/t8777.scala @@ -1,4 +1,4 @@ -// scalac: '-Wconf:msg=shadowing a nested class of a parent is deprecated:s' +//> using options '-Wconf:msg=shadowing a nested class of a parent is deprecated:s' package a { trait Test { diff --git a/test/files/neg/t9127.scala b/test/files/neg/t9127.scala index 1871e63dfa2..0e937b33130 100644 --- a/test/files/neg/t9127.scala +++ b/test/files/neg/t9127.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:missing-interpolator -Xfatal-warnings +//> using options -Xlint:missing-interpolator -Xfatal-warnings // trait X { diff --git a/test/files/neg/t9232.scala b/test/files/neg/t9232.scala index 453cc1be8a2..bdc5977ef90 100644 --- a/test/files/neg/t9232.scala +++ b/test/files/neg/t9232.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings final class Foo(val value: Int) object Foo { diff --git a/test/files/neg/t9398/match.scala b/test/files/neg/t9398/match.scala index 1329b389458..95015888d5a 100644 --- a/test/files/neg/t9398/match.scala +++ b/test/files/neg/t9398/match.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class Test { // Should warn that CC(B2) isn't matched def test(c: CC): Unit = c match { diff --git a/test/files/neg/t9617/Test.scala b/test/files/neg/t9617/Test.scala index efdd94f8a15..2d365a0ebf8 100644 --- a/test/files/neg/t9617/Test.scala +++ b/test/files/neg/t9617/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // Joint-compilation copy of test/files/neg/t10752/Test_2.scala object Test extends p1.DeprecatedClass { diff --git a/test/files/neg/t9636.scala b/test/files/neg/t9636.scala index 2c0b483e83b..4c3293d2038 100644 --- a/test/files/neg/t9636.scala +++ b/test/files/neg/t9636.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // import java.io._ diff --git a/test/files/neg/t9675.scala b/test/files/neg/t9675.scala index d4fcdbf4de5..66319c2886b 100644 --- a/test/files/neg/t9675.scala +++ b/test/files/neg/t9675.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { case class A(x: String) diff --git a/test/files/neg/t9834.scala b/test/files/neg/t9834.scala index a0d5e15dbdb..cbdd6f59db8 100644 --- a/test/files/neg/t9834.scala +++ b/test/files/neg/t9834.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object x { def apply() = 42 ; def update(i: Int) = () } diff --git a/test/files/neg/t9847.scala b/test/files/neg/t9847.scala index fba4739f169..9e6abbffb16 100644 --- a/test/files/neg/t9847.scala +++ b/test/files/neg/t9847.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation -Ywarn-value-discard +//> using options -Werror -Xlint:deprecation -Ywarn-value-discard // trait T { diff --git a/test/files/neg/t9953.scala b/test/files/neg/t9953.scala index 957fc8f04e4..a106a03920c 100644 --- a/test/files/neg/t9953.scala +++ b/test/files/neg/t9953.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class X(val v: Int) extends AnyVal diff --git a/test/files/neg/trait_fields_deprecated_overriding.scala b/test/files/neg/trait_fields_deprecated_overriding.scala index aafc1088159..73711e59b68 100644 --- a/test/files/neg/trait_fields_deprecated_overriding.scala +++ b/test/files/neg/trait_fields_deprecated_overriding.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // package scala diff --git a/test/files/neg/unchecked-abstract.scala b/test/files/neg/unchecked-abstract.scala index fc9e33a26c6..808128a310e 100644 --- a/test/files/neg/unchecked-abstract.scala +++ b/test/files/neg/unchecked-abstract.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait Contravariant[-X] trait Invariant[X] diff --git a/test/files/neg/unchecked-impossible.scala b/test/files/neg/unchecked-impossible.scala index c2b78aff963..8d84fb93892 100644 --- a/test/files/neg/unchecked-impossible.scala +++ b/test/files/neg/unchecked-impossible.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // final case class T2[+A, +B](a: A, b: B) diff --git a/test/files/neg/unchecked-knowable.scala b/test/files/neg/unchecked-knowable.scala index 10882cd3482..39c96746889 100644 --- a/test/files/neg/unchecked-knowable.scala +++ b/test/files/neg/unchecked-knowable.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // /** Knowable - only final leaves */ sealed abstract class A1 diff --git a/test/files/neg/unchecked-refinement.scala b/test/files/neg/unchecked-refinement.scala index 2d3b27eda23..491fcfaf33a 100644 --- a/test/files/neg/unchecked-refinement.scala +++ b/test/files/neg/unchecked-refinement.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // a.scala // Thu Sep 27 09:42:16 PDT 2012 diff --git a/test/files/neg/unchecked-suppress.scala b/test/files/neg/unchecked-suppress.scala index de9ce147cbe..9302ef9e9e1 100644 --- a/test/files/neg/unchecked-suppress.scala +++ b/test/files/neg/unchecked-suppress.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A { def f(x: Any) = x match { diff --git a/test/files/neg/unchecked.scala b/test/files/neg/unchecked.scala index 56526347001..eee51c67bce 100644 --- a/test/files/neg/unchecked.scala +++ b/test/files/neg/unchecked.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import language.existentials diff --git a/test/files/neg/unchecked2.scala b/test/files/neg/unchecked2.scala index 35148453869..007b0b6a8d6 100644 --- a/test/files/neg/unchecked2.scala +++ b/test/files/neg/unchecked2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { // These warn because it can be statically shown they won't match. diff --git a/test/files/neg/unchecked3.scala b/test/files/neg/unchecked3.scala index c8b63623395..d077a59b884 100644 --- a/test/files/neg/unchecked3.scala +++ b/test/files/neg/unchecked3.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait A2[T1] final class B2[T1, T2] extends A2[T1] diff --git a/test/files/neg/unicode-arrows-deprecation.scala b/test/files/neg/unicode-arrows-deprecation.scala index e77a7f0a5be..7a9f05a24d6 100644 --- a/test/files/neg/unicode-arrows-deprecation.scala +++ b/test/files/neg/unicode-arrows-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object Test { val a: Int ⇒ Int = x ⇒ x diff --git a/test/files/neg/unit-returns-value.scala b/test/files/neg/unit-returns-value.scala index 6c4295e6786..89ce8d827b9 100644 --- a/test/files/neg/unit-returns-value.scala +++ b/test/files/neg/unit-returns-value.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def f: Unit = { diff --git a/test/files/neg/universal-lint.scala b/test/files/neg/universal-lint.scala index 86adb81c08c..c01a573cf93 100644 --- a/test/files/neg/universal-lint.scala +++ b/test/files/neg/universal-lint.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror trait Test { def f = List("").map(_.isInstanceOf) diff --git a/test/files/neg/unreachablechar.scala b/test/files/neg/unreachablechar.scala index ae8d6c32f62..b17fe0505ef 100644 --- a/test/files/neg/unreachablechar.scala +++ b/test/files/neg/unreachablechar.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Foo extends App{ 'f' match { diff --git a/test/files/neg/unsafe.scala b/test/files/neg/unsafe.scala index f026db2598e..a0ab5ea5c20 100644 --- a/test/files/neg/unsafe.scala +++ b/test/files/neg/unsafe.scala @@ -1,5 +1,5 @@ -// scalac: --release:8 -Yrelease:java.lang +//> using options --release:8 -Yrelease:java.lang // javaVersion: 19+ // -Yrelease opens packages but does not override class definitions diff --git a/test/files/neg/unused.scala b/test/files/neg/unused.scala index ba0bb7ab769..c9fae1b3afa 100644 --- a/test/files/neg/unused.scala +++ b/test/files/neg/unused.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:patvars -Werror +//> using options -Wunused:patvars -Werror case class C(a: Int, b: Int, c: Int, d: Int) diff --git a/test/files/neg/value-discard.scala b/test/files/neg/value-discard.scala index a6bde54878b..21bb040c6e3 100644 --- a/test/files/neg/value-discard.scala +++ b/test/files/neg/value-discard.scala @@ -1,4 +1,4 @@ -// scalac: -Wvalue-discard -Werror +//> using options -Wvalue-discard -Werror final class UnusedTest { import scala.collection.mutable diff --git a/test/files/neg/varargs2.scala b/test/files/neg/varargs2.scala index 82ccf97cb03..26c8da1e43a 100644 --- a/test/files/neg/varargs2.scala +++ b/test/files/neg/varargs2.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import annotation.* diff --git a/test/files/neg/variant-placeholders-future.scala b/test/files/neg/variant-placeholders-future.scala index 75296ff945b..62ec844d76f 100644 --- a/test/files/neg/variant-placeholders-future.scala +++ b/test/files/neg/variant-placeholders-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // object Test { type -_ = Int // error -_ not allowed as a type def name without backticks diff --git a/test/files/neg/view-bounds-deprecation.scala b/test/files/neg/view-bounds-deprecation.scala index 28928c009dd..4d4e56f3bc7 100644 --- a/test/files/neg/view-bounds-deprecation.scala +++ b/test/files/neg/view-bounds-deprecation.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object Test { def f[A <% Int](a: A) = null diff --git a/test/files/neg/view-bounds-removal.scala b/test/files/neg/view-bounds-removal.scala index 4559e717513..7c1d741d5cd 100644 --- a/test/files/neg/view-bounds-removal.scala +++ b/test/files/neg/view-bounds-removal.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // object Test { def f[A <% Int](a: A) = null diff --git a/test/files/neg/virtpatmat_exhaust_big.scala b/test/files/neg/virtpatmat_exhaust_big.scala index ee0649c2b4e..6f53cd24f28 100644 --- a/test/files/neg/virtpatmat_exhaust_big.scala +++ b/test/files/neg/virtpatmat_exhaust_big.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class Z object Z { diff --git a/test/files/neg/virtpatmat_exhaust_compound.scala b/test/files/neg/virtpatmat_exhaust_compound.scala index 461656968a5..4860d94558e 100644 --- a/test/files/neg/virtpatmat_exhaust_compound.scala +++ b/test/files/neg/virtpatmat_exhaust_compound.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait Base case object O1 extends Base diff --git a/test/files/neg/virtpatmat_reach_null.scala b/test/files/neg/virtpatmat_reach_null.scala index 0a98530095a..f6c8db0ca68 100644 --- a/test/files/neg/virtpatmat_reach_null.scala +++ b/test/files/neg/virtpatmat_reach_null.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class Const { final def excludes(other: Const) = diff --git a/test/files/neg/virtpatmat_reach_sealed_unsealed.scala b/test/files/neg/virtpatmat_reach_sealed_unsealed.scala index 300a0ab85ca..f0a8905f6d7 100644 --- a/test/files/neg/virtpatmat_reach_sealed_unsealed.scala +++ b/test/files/neg/virtpatmat_reach_sealed_unsealed.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class X sealed case class A(x: Int) extends X diff --git a/test/files/neg/virtpatmat_unreach_select.scala b/test/files/neg/virtpatmat_unreach_select.scala index db6caf85b1a..dc49fe2dabd 100644 --- a/test/files/neg/virtpatmat_unreach_select.scala +++ b/test/files/neg/virtpatmat_unreach_select.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // class Test { object severity extends Enumeration diff --git a/test/files/neg/warn-inferred-any.scala b/test/files/neg/warn-inferred-any.scala index a717a84ece0..069ddbafa42 100644 --- a/test/files/neg/warn-inferred-any.scala +++ b/test/files/neg/warn-inferred-any.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:infer-any +//> using options -Xfatal-warnings -Xlint:infer-any // trait Foo[-A <: AnyRef, +B <: AnyRef] { def run[U](x: A)(action: B => U): Boolean = ??? diff --git a/test/files/neg/warn-unused-explicits.scala b/test/files/neg/warn-unused-explicits.scala index eca406ccf5a..b90ac269fd5 100644 --- a/test/files/neg/warn-unused-explicits.scala +++ b/test/files/neg/warn-unused-explicits.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:explicits -Werror +//> using options -Wunused:explicits -Werror // trait Context[A] trait ExplicitsOnly { diff --git a/test/files/neg/warn-unused-implicits.scala b/test/files/neg/warn-unused-implicits.scala index e61a65a4e7b..2fd2b374f7c 100644 --- a/test/files/neg/warn-unused-implicits.scala +++ b/test/files/neg/warn-unused-implicits.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:implicits +//> using options -Werror -Wunused:implicits // trait InterFace { diff --git a/test/files/neg/warn-unused-imports-b/warn-unused-imports_2.scala b/test/files/neg/warn-unused-imports-b/warn-unused-imports_2.scala index 47451b3e774..d09377524ab 100644 --- a/test/files/neg/warn-unused-imports-b/warn-unused-imports_2.scala +++ b/test/files/neg/warn-unused-imports-b/warn-unused-imports_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports -Ymacro-annotations +//> using options -Werror -Wunused:imports -Ymacro-annotations // class Bippo { def length: Int = 123 diff --git a/test/files/neg/warn-unused-imports/sample_1.scala b/test/files/neg/warn-unused-imports/sample_1.scala index 04765849ee0..80dcc59cfa1 100644 --- a/test/files/neg/warn-unused-imports/sample_1.scala +++ b/test/files/neg/warn-unused-imports/sample_1.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports +//> using options -Werror -Wunused:imports import language._ diff --git a/test/files/neg/warn-unused-imports/warn-unused-imports_2.scala b/test/files/neg/warn-unused-imports/warn-unused-imports_2.scala index 48f760d1275..d9fc9c69072 100644 --- a/test/files/neg/warn-unused-imports/warn-unused-imports_2.scala +++ b/test/files/neg/warn-unused-imports/warn-unused-imports_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports +//> using options -Werror -Wunused:imports // class Bippo { def length: Int = 123 diff --git a/test/files/neg/warn-unused-locals.scala b/test/files/neg/warn-unused-locals.scala index 09c7c4067cd..ef9068d4845 100644 --- a/test/files/neg/warn-unused-locals.scala +++ b/test/files/neg/warn-unused-locals.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:locals -Werror +//> using options -Wunused:locals -Werror class Outer { class Inner diff --git a/test/files/neg/warn-unused-params.scala b/test/files/neg/warn-unused-params.scala index 956d3dd9574..f10c0455942 100644 --- a/test/files/neg/warn-unused-params.scala +++ b/test/files/neg/warn-unused-params.scala @@ -1,4 +1,4 @@ -// scalac: -Wunused:params -Werror +//> using options -Wunused:params -Werror // import Answers._ diff --git a/test/files/neg/warn-unused-patvars.scala b/test/files/neg/warn-unused-patvars.scala index 2f4930d5ac6..c3f8ad6ceac 100644 --- a/test/files/neg/warn-unused-patvars.scala +++ b/test/files/neg/warn-unused-patvars.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-unused:-patvars,_ -Xfatal-warnings +//> using options -Ywarn-unused:-patvars,_ -Xfatal-warnings // // verify no warning when -Ywarn-unused:-patvars diff --git a/test/files/neg/warn-unused-privates.scala b/test/files/neg/warn-unused-privates.scala index 30fad175955..46e441ba882 100644 --- a/test/files/neg/warn-unused-privates.scala +++ b/test/files/neg/warn-unused-privates.scala @@ -1,5 +1,5 @@ // -// scalac: -deprecation -Wunused:privates -Xfatal-warnings +//> using options -deprecation -Wunused:privates -Xfatal-warnings // class Bippy(a: Int, b: Int) { private def this(c: Int) = this(c, c) // warn diff --git a/test/files/neg/warn-useless-svuid.scala b/test/files/neg/warn-useless-svuid.scala index 25882dc1bcd..3253cb8ec8e 100644 --- a/test/files/neg/warn-useless-svuid.scala +++ b/test/files/neg/warn-useless-svuid.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:serial -Xfatal-warnings +//> using options -Xlint:serial -Xfatal-warnings // @SerialVersionUID(1L) class X diff --git a/test/files/neg/wconfSource1.scala b/test/files/neg/wconfSource1.scala index 19e191de5a1..0e7e8805170 100644 --- a/test/files/neg/wconfSource1.scala +++ b/test/files/neg/wconfSource1.scala @@ -1,4 +1,4 @@ -// scalac: -Wconf:src=.*Source.*&cat=deprecation:e,src=Source1.scala&msg=statement:e,src=wconfSource1&msg=statement:e,src=wconfSource1.scala&msg=statement:i +//> using options -Wconf:src=.*Source.*&cat=deprecation:e,src=Source1.scala&msg=statement:e,src=wconfSource1&msg=statement:e,src=wconfSource1.scala&msg=statement:i // src=Source1.scala doesn't match: the pattern needs to start at a path segment (after `/`) // src=wconfSource1 doesn't match: the pattern needs to match to the end of the path (.scala) diff --git a/test/files/neg/wconfSource2.scala b/test/files/neg/wconfSource2.scala index 02235699388..549476972c7 100644 --- a/test/files/neg/wconfSource2.scala +++ b/test/files/neg/wconfSource2.scala @@ -1,4 +1,4 @@ -// scalac: -Wconf:src=test/files/neg/wconfSource2.scala&cat=deprecation:e,src=test/.*&msg=statement:i,src=/neg/.*&cat=feature-reflective-calls:i +//> using options -Wconf:src=test/files/neg/wconfSource2.scala&cat=deprecation:e,src=test/.*&msg=statement:i,src=/neg/.*&cat=feature-reflective-calls:i class C { @deprecated("", "") def dep = 0 diff --git a/test/files/neg/wildcards-future.scala b/test/files/neg/wildcards-future.scala index 54b7675813e..f69e0b02f79 100644 --- a/test/files/neg/wildcards-future.scala +++ b/test/files/neg/wildcards-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // object Test { val underscores: Map[_ <: AnyRef, _ >: Null] = Map() diff --git a/test/files/neg/xlint-captured.scala b/test/files/neg/xlint-captured.scala index e4acdf7bcc5..ded04c98342 100644 --- a/test/files/neg/xlint-captured.scala +++ b/test/files/neg/xlint-captured.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wperformance +//> using options -Werror -Wperformance object Test { var a, b = 0 // ok def mkStrangeCounter(): Int => Int = { diff --git a/test/files/neg/xml-parens.scala b/test/files/neg/xml-parens.scala index 490b2395280..b97bf73442b 100644 --- a/test/files/neg/xml-parens.scala +++ b/test/files/neg/xml-parens.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:typer +//> using options -Ystop-after:typer // object Test { () diff --git a/test/files/neg/yimports-custom-b/C_2.scala b/test/files/neg/yimports-custom-b/C_2.scala index 09940d0a6d4..37901f6cbeb 100644 --- a/test/files/neg/yimports-custom-b/C_2.scala +++ b/test/files/neg/yimports-custom-b/C_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:hello.world.minidef +//> using options -Yimports:hello.world.minidef import hello.{world => hw} import hw.minidef.{Magic => Answer} diff --git a/test/files/neg/yimports-custom-b/minidef_1.scala b/test/files/neg/yimports-custom-b/minidef_1.scala index befc137b6ab..78d2f3c03bf 100644 --- a/test/files/neg/yimports-custom-b/minidef_1.scala +++ b/test/files/neg/yimports-custom-b/minidef_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala +//> using options -Yimports:scala package hello.world diff --git a/test/files/neg/yimports-custom/C_2.scala b/test/files/neg/yimports-custom/C_2.scala index 660a580d6fe..5a5482c5105 100644 --- a/test/files/neg/yimports-custom/C_2.scala +++ b/test/files/neg/yimports-custom/C_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:hello.world.minidef +//> using options -Yimports:hello.world.minidef class C { val v: Numb = Magic diff --git a/test/files/neg/yimports-masked/C_2.scala b/test/files/neg/yimports-masked/C_2.scala index e3eade45787..88d6e61a3e4 100644 --- a/test/files/neg/yimports-masked/C_2.scala +++ b/test/files/neg/yimports-masked/C_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala,hello.world.minidef +//> using options -Yimports:scala,hello.world.minidef // import at top level or top of package disables implicit import. // the import can appear at any statement position, here, end of package. diff --git a/test/files/neg/yimports-nojava.scala b/test/files/neg/yimports-nojava.scala index 955685d16f7..d7ef3646cdf 100644 --- a/test/files/neg/yimports-nojava.scala +++ b/test/files/neg/yimports-nojava.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala,scala.Predef +//> using options -Yimports:scala,scala.Predef trait T { def f() = println("hello, world!") diff --git a/test/files/neg/yimports-nosuch.scala b/test/files/neg/yimports-nosuch.scala index c868edfa3d6..617f0b84ba1 100644 --- a/test/files/neg/yimports-nosuch.scala +++ b/test/files/neg/yimports-nosuch.scala @@ -1,3 +1,3 @@ -// scalac: -Yimports:skala,scala.Predeff +//> using options -Yimports:skala,scala.Predeff // class C diff --git a/test/files/neg/yimports-predef.scala b/test/files/neg/yimports-predef.scala index 6165c566ac8..d6b2b7be419 100644 --- a/test/files/neg/yimports-predef.scala +++ b/test/files/neg/yimports-predef.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala,scala.Predef +//> using options -Yimports:scala,scala.Predef // import Predef.{any2stringadd => _, _} diff --git a/test/files/neg/yimports-stable/C_2.scala b/test/files/neg/yimports-stable/C_2.scala index dfadaef1218..6c57e369be7 100644 --- a/test/files/neg/yimports-stable/C_2.scala +++ b/test/files/neg/yimports-stable/C_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala,scala.Predef,hello.world.potions +//> using options -Yimports:scala,scala.Predef,hello.world.potions // class C { val v: Numb = magic diff --git a/test/files/pos/and-future.scala b/test/files/pos/and-future.scala index f7e15e822ec..27ace4bc8d5 100644 --- a/test/files/pos/and-future.scala +++ b/test/files/pos/and-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // trait X diff --git a/test/files/pos/annotated-outer.scala b/test/files/pos/annotated-outer.scala index 86f6fe675ac..51a26f2aa0b 100644 --- a/test/files/pos/annotated-outer.scala +++ b/test/files/pos/annotated-outer.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { trait MySet[A] trait MyMap[K, +V] { diff --git a/test/files/pos/auto-application.scala b/test/files/pos/auto-application.scala index 1e9ec1b1c20..293136c39b0 100644 --- a/test/files/pos/auto-application.scala +++ b/test/files/pos/auto-application.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -deprecation -Xsource:3 +//> using options -Werror -deprecation -Xsource:3 // class Test { def a1(xs: List[String]): Int = xs.hashCode diff --git a/test/files/pos/byname-implicits-31/Main_2.scala b/test/files/pos/byname-implicits-31/Main_2.scala index 7f7962f38ef..7d279d8b9ca 100644 --- a/test/files/pos/byname-implicits-31/Main_2.scala +++ b/test/files/pos/byname-implicits-31/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:_ +//> using options -Ycheck:_ object Test { util.lazily[Ping] } diff --git a/test/files/pos/byname-implicits-32/Main_2.scala b/test/files/pos/byname-implicits-32/Main_2.scala index 7f7962f38ef..7d279d8b9ca 100644 --- a/test/files/pos/byname-implicits-32/Main_2.scala +++ b/test/files/pos/byname-implicits-32/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:_ +//> using options -Ycheck:_ object Test { util.lazily[Ping] } diff --git a/test/files/pos/byname-implicits-33/Main_2.scala b/test/files/pos/byname-implicits-33/Main_2.scala index d3a14994ca1..e1e0214b50c 100644 --- a/test/files/pos/byname-implicits-33/Main_2.scala +++ b/test/files/pos/byname-implicits-33/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:_ +//> using options -Ycheck:_ object Test { util.lazily[Functor[Rec]] } diff --git a/test/files/pos/byname-implicits-34/Main_2.scala b/test/files/pos/byname-implicits-34/Main_2.scala index d2bcbe4645d..249d845e034 100644 --- a/test/files/pos/byname-implicits-34/Main_2.scala +++ b/test/files/pos/byname-implicits-34/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:_ +//> using options -Ycheck:_ object Test { util.lazily[Rec] } diff --git a/test/files/pos/case-object-add-serializable.scala b/test/files/pos/case-object-add-serializable.scala index 7728649414a..b773f08a7e7 100644 --- a/test/files/pos/case-object-add-serializable.scala +++ b/test/files/pos/case-object-add-serializable.scala @@ -1,4 +1,4 @@ -// scalac: -Xdev -Werror +//> using options -Xdev -Werror // Was: "warning: !!! base trait Serializable not found in basetypes of object Person. This might indicate incorrect caching of TypeRef#parents." // under -Xdev class Test { diff --git a/test/files/pos/classtag-pos.scala b/test/files/pos/classtag-pos.scala index f30c3c3c168..32d7104c21f 100644 --- a/test/files/pos/classtag-pos.scala +++ b/test/files/pos/classtag-pos.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos import scala.reflect.runtime.universe._ class A { diff --git a/test/files/pos/cycle/X_2.scala b/test/files/pos/cycle/X_2.scala index 68c22b86446..3effc687d68 100644 --- a/test/files/pos/cycle/X_2.scala +++ b/test/files/pos/cycle/X_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ybreak-cycles +//> using options -Ybreak-cycles import bar.J_1._ //<--- illegal cyclic reference involving class X diff --git a/test/files/pos/debug-reset-local-attrs.scala b/test/files/pos/debug-reset-local-attrs.scala index 94d68ff9c0f..cbc86a2c901 100644 --- a/test/files/pos/debug-reset-local-attrs.scala +++ b/test/files/pos/debug-reset-local-attrs.scala @@ -1,2 +1,2 @@ -// scalac: -Ydebug +//> using options -Ydebug case class FT(f : Float) diff --git a/test/files/pos/delambdafy_t6260_method.scala b/test/files/pos/delambdafy_t6260_method.scala index 644e2681dc1..7c073c0d306 100644 --- a/test/files/pos/delambdafy_t6260_method.scala +++ b/test/files/pos/delambdafy_t6260_method.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method class Box[X](val x: X) extends AnyVal { def map[Y](f: X => Y): Box[Y] = ((bx: Box[X]) => new Box(f(bx.x)))(this) diff --git a/test/files/pos/dotless-targs-ranged.scala b/test/files/pos/dotless-targs-ranged.scala index 67d4f8d80dc..a5182ef8fb9 100644 --- a/test/files/pos/dotless-targs-ranged.scala +++ b/test/files/pos/dotless-targs-ranged.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:true +//> using options -Yrangepos:true class A { def fn1 = List apply 1 def fn2 = List apply[Int] 2 diff --git a/test/files/pos/dotless-targs.scala b/test/files/pos/dotless-targs.scala index e88f7206dc6..7e208d5198c 100644 --- a/test/files/pos/dotless-targs.scala +++ b/test/files/pos/dotless-targs.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false class A { def fn1 = List apply 1 def fn2 = List apply[Int] 2 diff --git a/test/files/pos/exhaust_alternatives.scala b/test/files/pos/exhaust_alternatives.scala index 07bd1e01775..dfa3e0919f2 100644 --- a/test/files/pos/exhaust_alternatives.scala +++ b/test/files/pos/exhaust_alternatives.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings sealed abstract class X sealed case class A(x: Boolean) extends X case object B extends X diff --git a/test/files/pos/existential-slow-compile1.scala b/test/files/pos/existential-slow-compile1.scala index 8d700735462..4db352e8542 100644 --- a/test/files/pos/existential-slow-compile1.scala +++ b/test/files/pos/existential-slow-compile1.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:refchecks -Yrangepos +//> using options -Ystop-after:refchecks -Yrangepos class C { type L[+A] = scala.collection.immutable.List[A] def test = { diff --git a/test/files/pos/existential-slow-compile2.scala b/test/files/pos/existential-slow-compile2.scala index 901c06880d4..dcf2a526f36 100644 --- a/test/files/pos/existential-slow-compile2.scala +++ b/test/files/pos/existential-slow-compile2.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:refchecks -Yrangepos +//> using options -Ystop-after:refchecks -Yrangepos class C { class L[+A] def test = { diff --git a/test/files/pos/generic-sigs.scala b/test/files/pos/generic-sigs.scala index f1293f8da12..841849e70c2 100644 --- a/test/files/pos/generic-sigs.scala +++ b/test/files/pos/generic-sigs.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings import language.existentials object A { diff --git a/test/files/pos/higherKinds.scala b/test/files/pos/higherKinds.scala index 083c3463f81..27f43ed0d06 100644 --- a/test/files/pos/higherKinds.scala +++ b/test/files/pos/higherKinds.scala @@ -1,4 +1,4 @@ -// scalac: -feature -Werror +//> using options -feature -Werror object Test { type F[A] <: List[A] def foo[G[X] <: List[X]](x: F[Int]): F[Int] = x diff --git a/test/files/pos/hk-existential-subtype.scala b/test/files/pos/hk-existential-subtype.scala index cc61b7deaa5..9528c404545 100644 --- a/test/files/pos/hk-existential-subtype.scala +++ b/test/files/pos/hk-existential-subtype.scala @@ -1,4 +1,4 @@ -// scalac: -language:higherKinds,existentials -Xfatal-warnings +//> using options -language:higherKinds,existentials -Xfatal-warnings class Functor[F[_]] object Functor { val someF: Functor[F] forSome { type F[_] } = new Functor[Option] diff --git a/test/files/pos/hkarray.scala b/test/files/pos/hkarray.scala index 11e7b50f53c..93457452dbb 100644 --- a/test/files/pos/hkarray.scala +++ b/test/files/pos/hkarray.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -language:higherKinds +//> using options -Xfatal-warnings -language:higherKinds trait Foo[CC[_]] { } class Bip { diff --git a/test/files/pos/i11371.scala b/test/files/pos/i11371.scala index 74156b777c9..c895d83e6d2 100644 --- a/test/files/pos/i11371.scala +++ b/test/files/pos/i11371.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // object HelloWorld { def whileLoop: Int = { diff --git a/test/files/pos/ignore-wperf.scala b/test/files/pos/ignore-wperf.scala index 24c4e6a5c4b..b63323bd07f 100644 --- a/test/files/pos/ignore-wperf.scala +++ b/test/files/pos/ignore-wperf.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wperformance -Wconf:cat=lint-performance:s +//> using options -Werror -Wperformance -Wconf:cat=lint-performance:s class C { var x = 0 diff --git a/test/files/pos/import-future.scala b/test/files/pos/import-future.scala index 30e499ca0bb..2443c33e953 100644 --- a/test/files/pos/import-future.scala +++ b/test/files/pos/import-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // import java.io as jio diff --git a/test/files/pos/inline-access-levels/A_1.scala b/test/files/pos/inline-access-levels/A_1.scala index ff2620161c6..b8fa46ba6a7 100644 --- a/test/files/pos/inline-access-levels/A_1.scala +++ b/test/files/pos/inline-access-levels/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt -Werror +//> using options -opt:inline:** -Wopt -Werror package test object A { diff --git a/test/files/pos/inline-access-levels/Test_2.scala b/test/files/pos/inline-access-levels/Test_2.scala index a9aedd61e0b..97937c80b43 100644 --- a/test/files/pos/inline-access-levels/Test_2.scala +++ b/test/files/pos/inline-access-levels/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt -Werror +//> using options -opt:inline:** -Wopt -Werror package test object Test { diff --git a/test/files/pos/java-import-static-from-subclass/Test.scala b/test/files/pos/java-import-static-from-subclass/Test.scala index 7d2326b519e..4b7e4a5d159 100644 --- a/test/files/pos/java-import-static-from-subclass/Test.scala +++ b/test/files/pos/java-import-static-from-subclass/Test.scala @@ -1,2 +1,2 @@ -// scalac: -Ypickle-java +//> using options -Ypickle-java class Test diff --git a/test/files/pos/lazyref-autoapply.scala b/test/files/pos/lazyref-autoapply.scala index d255b95bfdc..37642091d57 100644 --- a/test/files/pos/lazyref-autoapply.scala +++ b/test/files/pos/lazyref-autoapply.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xsource:3 -Xlint +//> using options -Werror -Xsource:3 -Xlint object Test { def doti(i: Int): Product = { diff --git a/test/files/pos/macro-annot/t12366.scala b/test/files/pos/macro-annot/t12366.scala index 9b75bb3c6d1..885919ec411 100644 --- a/test/files/pos/macro-annot/t12366.scala +++ b/test/files/pos/macro-annot/t12366.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations +//> using options -Ymacro-annotations object Test extends App { @deprecated diff --git a/test/files/pos/macro-deprecate-dont-touch-backquotedidents.scala b/test/files/pos/macro-deprecate-dont-touch-backquotedidents.scala index 204a41ca94b..a32fc61e731 100644 --- a/test/files/pos/macro-deprecate-dont-touch-backquotedidents.scala +++ b/test/files/pos/macro-deprecate-dont-touch-backquotedidents.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings object Test1 { val `macro` = ??? } diff --git a/test/files/pos/native-warning.scala b/test/files/pos/native-warning.scala index 7f47e94604a..73a22ceaecc 100644 --- a/test/files/pos/native-warning.scala +++ b/test/files/pos/native-warning.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation class A { @native def setup(): Unit diff --git a/test/files/pos/nonlocal-unchecked.scala b/test/files/pos/nonlocal-unchecked.scala index 818517aea8d..62487c47f41 100644 --- a/test/files/pos/nonlocal-unchecked.scala +++ b/test/files/pos/nonlocal-unchecked.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings class A { def f: Boolean = { val xs = Nil map (_ => return false) diff --git a/test/files/pos/nullary-override-3.scala b/test/files/pos/nullary-override-3.scala index 171ed5be8ed..2ab5e5ce86c 100644 --- a/test/files/pos/nullary-override-3.scala +++ b/test/files/pos/nullary-override-3.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:nowarn -Xsource:3 +//> using options -Werror -Wunused:nowarn -Xsource:3 // class C extends java.lang.CharSequence { def charAt(x$1: Int): Char = ??? diff --git a/test/files/pos/open-infix-future.scala b/test/files/pos/open-infix-future.scala index 8fee778d40c..7b09cb54cf8 100644 --- a/test/files/pos/open-infix-future.scala +++ b/test/files/pos/open-infix-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // open class A diff --git a/test/files/pos/package-ob-case/A_1.scala b/test/files/pos/package-ob-case/A_1.scala index 39f68eef9db..7101da2092e 100644 --- a/test/files/pos/package-ob-case/A_1.scala +++ b/test/files/pos/package-ob-case/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings package foo { package object foo { case class X(z: Int) { } diff --git a/test/files/pos/package-ob-case/B_2.scala b/test/files/pos/package-ob-case/B_2.scala index 39f68eef9db..7101da2092e 100644 --- a/test/files/pos/package-ob-case/B_2.scala +++ b/test/files/pos/package-ob-case/B_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings package foo { package object foo { case class X(z: Int) { } diff --git a/test/files/pos/parens-for-params-silent.scala b/test/files/pos/parens-for-params-silent.scala index 6eb07a5c3c8..b0ee04fd6bd 100644 --- a/test/files/pos/parens-for-params-silent.scala +++ b/test/files/pos/parens-for-params-silent.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wconf:msg=lambda-parens:s -Xsource:3 +//> using options -Werror -Wconf:msg=lambda-parens:s -Xsource:3 class C { def f = { diff --git a/test/files/pos/patmat-hk.scala b/test/files/pos/patmat-hk.scala index 95f08e018d2..5e150da4695 100644 --- a/test/files/pos/patmat-hk.scala +++ b/test/files/pos/patmat-hk.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 case class Foo[F[_]]() case class APair[F[_], G[_], A](f: F[A], g: G[A]) diff --git a/test/files/pos/patmat-suppress.scala b/test/files/pos/patmat-suppress.scala index 1e408db0a42..e144193b131 100644 --- a/test/files/pos/patmat-suppress.scala +++ b/test/files/pos/patmat-suppress.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xno-patmat-analysis +//> using options -Xfatal-warnings -Xno-patmat-analysis // // test that none of these warn due to -Xno-patmat-analysis // tests taken from test/files/neg/patmatexhaust.scala, test/files/neg/pat_unreachable.scala diff --git a/test/files/pos/patmat_list_rewrite.scala b/test/files/pos/patmat_list_rewrite.scala index abd20fb910a..693cf0a30b7 100644 --- a/test/files/pos/patmat_list_rewrite.scala +++ b/test/files/pos/patmat_list_rewrite.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // class C { def m(xs: List[String]) = xs match { diff --git a/test/files/pos/polymorphic-case-class.scala b/test/files/pos/polymorphic-case-class.scala index a7e8eb8bb0f..f133ae8a1bf 100644 --- a/test/files/pos/polymorphic-case-class.scala +++ b/test/files/pos/polymorphic-case-class.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // no unchecked warnings case class Bippy[T, -U, +V](x: T, z: V) { } diff --git a/test/files/pos/rangepos-anonapply.scala b/test/files/pos/rangepos-anonapply.scala index 49e0e1f2ff9..d6b8a11d8e3 100644 --- a/test/files/pos/rangepos-anonapply.scala +++ b/test/files/pos/rangepos-anonapply.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos class Test { trait PropTraverser { def apply(x: Int): Unit = {} diff --git a/test/files/pos/rangepos-patmat.scala b/test/files/pos/rangepos-patmat.scala index 0c40266dab4..3a90d1936a1 100644 --- a/test/files/pos/rangepos-patmat.scala +++ b/test/files/pos/rangepos-patmat.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos class Foo { def test: PartialFunction[Any, String] = { case _ => "ok" } } diff --git a/test/files/pos/rangepos.scala b/test/files/pos/rangepos.scala index fc511a2f205..ebebd32c137 100644 --- a/test/files/pos/rangepos.scala +++ b/test/files/pos/rangepos.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos class Foo(val x: Double) extends AnyVal { } object Pretty { diff --git a/test/files/pos/setter-not-implicit.scala b/test/files/pos/setter-not-implicit.scala index 4836cf6304c..4cb6b5cd88b 100644 --- a/test/files/pos/setter-not-implicit.scala +++ b/test/files/pos/setter-not-implicit.scala @@ -1,5 +1,5 @@ -// scalac: -feature -Xfatal-warnings +//> using options -feature -Xfatal-warnings object O { implicit var x: Int = 0 } diff --git a/test/files/pos/skunky-expansion.scala b/test/files/pos/skunky-expansion.scala index d3f26c83a21..15f84bb9234 100644 --- a/test/files/pos/skunky-expansion.scala +++ b/test/files/pos/skunky-expansion.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wnonunit-statement +//> using options -Werror -Wnonunit-statement // import scala.reflect.macros._ import scala.reflect.api.TypeCreator diff --git a/test/files/pos/skunky.scala b/test/files/pos/skunky.scala index 1c5f5730a0a..98a8604b2f4 100644 --- a/test/files/pos/skunky.scala +++ b/test/files/pos/skunky.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wnonunit-statement +//> using options -Werror -Wnonunit-statement import scala.reflect.macros._ diff --git a/test/files/pos/t10093.scala b/test/files/pos/t10093.scala index 82e7f860cf3..1f5da004680 100644 --- a/test/files/pos/t10093.scala +++ b/test/files/pos/t10093.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings class A[@specialized(Int) T](val value: T) { trait B def useValue(x:T): Unit = () diff --git a/test/files/pos/t10185.scala b/test/files/pos/t10185.scala index 36338d7576a..5334a1c0177 100644 --- a/test/files/pos/t10185.scala +++ b/test/files/pos/t10185.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // sealed trait Foo[A, F[_ <: A]] case class Bar[A, F[_ <: A]]() extends Foo[A, F] diff --git a/test/files/pos/t10195.scala b/test/files/pos/t10195.scala index 86fe175bdcc..58e23de346c 100644 --- a/test/files/pos/t10195.scala +++ b/test/files/pos/t10195.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // sealed trait Foo[F[_]] case class Bar[F[_]]() extends Foo[F] diff --git a/test/files/pos/t10195b.scala b/test/files/pos/t10195b.scala index 78272e52322..0bf710f97e4 100644 --- a/test/files/pos/t10195b.scala +++ b/test/files/pos/t10195b.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // sealed trait Foo[F[_]] case class Bar[F[_]]() extends Foo[F] diff --git a/test/files/pos/t10197.scala b/test/files/pos/t10197.scala index 8ccb8dc7352..6c69aa0d240 100644 --- a/test/files/pos/t10197.scala +++ b/test/files/pos/t10197.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 import scala.language.higherKinds final case class Getter[S, A](get: S => A) diff --git a/test/files/pos/t10213.scala b/test/files/pos/t10213.scala index f5d76d1e6aa..44b1cf52104 100644 --- a/test/files/pos/t10213.scala +++ b/test/files/pos/t10213.scala @@ -1,6 +1,6 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 import scala.language.higherKinds final case class Coproduct[F[_], G[_], A](run: Either[F[A], G[A]]) diff --git a/test/files/pos/t10238.scala b/test/files/pos/t10238.scala index 6ae974052f5..bfb6f23044a 100644 --- a/test/files/pos/t10238.scala +++ b/test/files/pos/t10238.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 object Test { diff --git a/test/files/pos/t10270/Main_2.scala b/test/files/pos/t10270/Main_2.scala index 58d21e8e0c0..a0b7c5aff01 100644 --- a/test/files/pos/t10270/Main_2.scala +++ b/test/files/pos/t10270/Main_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Ywarn-unused:imports +//> using options -Xfatal-warnings -Ywarn-unused:imports object Main extends App { diff --git a/test/files/pos/t10288.scala b/test/files/pos/t10288.scala index 59d8d96cf09..4b2b32bbb28 100644 --- a/test/files/pos/t10288.scala +++ b/test/files/pos/t10288.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 trait Target trait Unrelated diff --git a/test/files/pos/t10296-before/Unused_2.scala b/test/files/pos/t10296-before/Unused_2.scala index cdde22bb0d1..5d00b5ba284 100644 --- a/test/files/pos/t10296-before/Unused_2.scala +++ b/test/files/pos/t10296-before/Unused_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings -Xlint:unused -Ywarn-macros:before +//> using options -Xfatal-warnings -Xlint:unused -Ywarn-macros:before // import scala.language.experimental.macros diff --git a/test/files/pos/t10296/Unused_2.scala b/test/files/pos/t10296/Unused_2.scala index 7f1e2ec869a..adca67fbf0b 100644 --- a/test/files/pos/t10296/Unused_2.scala +++ b/test/files/pos/t10296/Unused_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:unused +//> using options -Xfatal-warnings -Xlint:unused import scala.language.experimental.macros diff --git a/test/files/pos/t10372.scala b/test/files/pos/t10372.scala index 79003178775..1a22e89c8d7 100644 --- a/test/files/pos/t10372.scala +++ b/test/files/pos/t10372.scala @@ -1,5 +1,5 @@ // -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // import scala.language.higherKinds import scala.language.implicitConversions diff --git a/test/files/pos/t10373.scala b/test/files/pos/t10373.scala index f1c62ec0726..f913cfe64fb 100644 --- a/test/files/pos/t10373.scala +++ b/test/files/pos/t10373.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed abstract class Foo { def bar(): Unit = this match { case Foo_1() => //do something diff --git a/test/files/pos/t10394.scala b/test/files/pos/t10394.scala index 3698595a681..51ce1062b8b 100644 --- a/test/files/pos/t10394.scala +++ b/test/files/pos/t10394.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings -Ywarn-unused:patvars +//> using options -Xfatal-warnings -Ywarn-unused:patvars trait T { def f = for (i: Int <- List(42)) yield i } diff --git a/test/files/pos/t10502.scala b/test/files/pos/t10502.scala index 38cd733e646..0222e731211 100644 --- a/test/files/pos/t10502.scala +++ b/test/files/pos/t10502.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings final class Box[A](val unwrap: A) diff --git a/test/files/pos/t10589-case-implicit-param/cc_2.scala b/test/files/pos/t10589-case-implicit-param/cc_2.scala index 17a1dce15ca..48281f051ba 100644 --- a/test/files/pos/t10589-case-implicit-param/cc_2.scala +++ b/test/files/pos/t10589-case-implicit-param/cc_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations +//> using options -Ymacro-annotations trait T[A] @macid diff --git a/test/files/pos/t10589-case-implicit-param/macros_1.scala b/test/files/pos/t10589-case-implicit-param/macros_1.scala index 700c925d879..d3eeb8bf05c 100644 --- a/test/files/pos/t10589-case-implicit-param/macros_1.scala +++ b/test/files/pos/t10589-case-implicit-param/macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-annotations +//> using options -Ymacro-annotations import scala.annotation.StaticAnnotation import scala.language.experimental.macros diff --git a/test/files/pos/t10623.scala b/test/files/pos/t10623.scala index d48273914f7..93cc77a4abd 100644 --- a/test/files/pos/t10623.scala +++ b/test/files/pos/t10623.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings -Xlint:unused +//> using options -Xfatal-warnings -Xlint:unused // object `package` { diff --git a/test/files/pos/t10643.scala b/test/files/pos/t10643.scala index 99c4cf4c930..689f2b5a8db 100644 --- a/test/files/pos/t10643.scala +++ b/test/files/pos/t10643.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos trait AA trait BB diff --git a/test/files/pos/t10644/Objs_1.scala b/test/files/pos/t10644/Objs_1.scala index 804cfa435c1..7f8649e5599 100644 --- a/test/files/pos/t10644/Objs_1.scala +++ b/test/files/pos/t10644/Objs_1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings case object A ; case object B object C { // inferred refinement type `Product with Serializable` of val `objs` has owner `C` diff --git a/test/files/pos/t10644/Test_2.scala b/test/files/pos/t10644/Test_2.scala index 029cee6ad30..0e5ba627e2e 100644 --- a/test/files/pos/t10644/Test_2.scala +++ b/test/files/pos/t10644/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings object Test { // Should not result in the spurious warning: // comparing non-null values of types Product with Serializable diff --git a/test/files/pos/t10680.scala b/test/files/pos/t10680.scala index 7a2c64bfb0e..d1ee3b3a545 100644 --- a/test/files/pos/t10680.scala +++ b/test/files/pos/t10680.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings object MyEnum extends Enumeration { val e1 = Value("e1") val e2 = Value("e2") diff --git a/test/files/pos/t10763.scala b/test/files/pos/t10763.scala index a18f9cd8ccf..f4c0bbbf3c2 100644 --- a/test/files/pos/t10763.scala +++ b/test/files/pos/t10763.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Wunused +//> using options -Werror -Wunused class Test { def xsUnused = { diff --git a/test/files/pos/t11303.scala b/test/files/pos/t11303.scala index d094bf90004..2998610eaab 100644 --- a/test/files/pos/t11303.scala +++ b/test/files/pos/t11303.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { sealed trait Gadt[F[_], O, R] diff --git a/test/files/pos/t11525.scala b/test/files/pos/t11525.scala index cc872728181..94f63b23e1e 100644 --- a/test/files/pos/t11525.scala +++ b/test/files/pos/t11525.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:refchecks -Ydebug -uniqid +//> using options -Ystop-after:refchecks -Ydebug -uniqid package java.lang /* This is a pretty random test that very indirectly tests `unique`ing of `ObjectTpeJavaRef` diff --git a/test/files/pos/t11534.scala b/test/files/pos/t11534.scala index bab4bd956d8..dd3808195b7 100644 --- a/test/files/pos/t11534.scala +++ b/test/files/pos/t11534.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test1 { val g: scala.tools.nsc.Global = ??? import g._ diff --git a/test/files/pos/t11538.scala b/test/files/pos/t11538.scala index 13101365d02..0c02d81241b 100644 --- a/test/files/pos/t11538.scala +++ b/test/files/pos/t11538.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -deprecation -stop:refchecks +//> using options -Werror -deprecation -stop:refchecks package t11538 @deprecated("not for you", since = "just now") diff --git a/test/files/pos/t11603.scala b/test/files/pos/t11603.scala index 01a59a532ba..8d943b1ae6f 100644 --- a/test/files/pos/t11603.scala +++ b/test/files/pos/t11603.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class C { def m(x: true) = x match { case true => println("the one true path") diff --git a/test/files/pos/t11663/B_2.scala b/test/files/pos/t11663/B_2.scala index 6426225f7a8..5c2513618f2 100644 --- a/test/files/pos/t11663/B_2.scala +++ b/test/files/pos/t11663/B_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt:_ +//> using options -opt:inline:** -Wopt:_ class B { def bar(c: A) = c.m } diff --git a/test/files/pos/t11681.scala b/test/files/pos/t11681.scala index 0976e86fd7b..68638b12e4a 100644 --- a/test/files/pos/t11681.scala +++ b/test/files/pos/t11681.scala @@ -1,5 +1,5 @@ // -// scalac: -Wunused:privates -Werror +//> using options -Wunused:privates -Werror // package com diff --git a/test/files/pos/t11813.scala b/test/files/pos/t11813.scala index 0e827625c69..accc6b4e237 100644 --- a/test/files/pos/t11813.scala +++ b/test/files/pos/t11813.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:implicit-recursion +//> using options -Werror -Xlint:implicit-recursion // package warner diff --git a/test/files/pos/t11856.scala b/test/files/pos/t11856.scala index 6c8b500c724..69831172dc1 100644 --- a/test/files/pos/t11856.scala +++ b/test/files/pos/t11856.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:params +//> using options -Werror -Wunused:params class C { def answer: 42 = 42 diff --git a/test/files/pos/t11895.scala b/test/files/pos/t11895.scala index 98230bc5797..3f58faf1b24 100644 --- a/test/files/pos/t11895.scala +++ b/test/files/pos/t11895.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -deprecation +//> using options -Werror -deprecation // trait Bar { trait Foo diff --git a/test/files/pos/t11917/Z.scala b/test/files/pos/t11917/Z.scala index c2ca34faf00..13b19b20ec8 100644 --- a/test/files/pos/t11917/Z.scala +++ b/test/files/pos/t11917/Z.scala @@ -1,4 +1,4 @@ -// scalac: -Ypickle-java +//> using options -Ypickle-java package bar diff --git a/test/files/pos/t11921b.scala b/test/files/pos/t11921b.scala index 38870f0cb53..fd7a68fe066 100644 --- a/test/files/pos/t11921b.scala +++ b/test/files/pos/t11921b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wconf:msg=legacy-binding:s -Xsource:3 +//> using options -Werror -Wconf:msg=legacy-binding:s -Xsource:3 object test1 { diff --git a/test/files/pos/t11921c.scala b/test/files/pos/t11921c.scala index d78439424f4..d10aa603669 100644 --- a/test/files/pos/t11921c.scala +++ b/test/files/pos/t11921c.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // test/scaladoc/resources/t5784.scala diff --git a/test/files/pos/t11952.scala b/test/files/pos/t11952.scala index 6b93cfb6f1e..5da46f3e6c2 100644 --- a/test/files/pos/t11952.scala +++ b/test/files/pos/t11952.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint -nowarn +//> using options -Werror -Xlint -nowarn // // nowarn should mean no warnings are emitted, // irrespective of other flags, and also no diff --git a/test/files/pos/t11964.scala b/test/files/pos/t11964.scala index 4f0bd8f7372..86b51f6ae33 100644 --- a/test/files/pos/t11964.scala +++ b/test/files/pos/t11964.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint object Hmm { def zxc(b: Int*)(implicit x: Int = 3) = "" + b + x diff --git a/test/files/pos/t11966.scala b/test/files/pos/t11966.scala index b662e71322d..4802c8c602c 100644 --- a/test/files/pos/t11966.scala +++ b/test/files/pos/t11966.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -deprecation +//> using options -Werror -deprecation // object Test { val original = """\/ \/ /\""" diff --git a/test/files/pos/t12006.scala b/test/files/pos/t12006.scala index a4abecfaf62..013ba24a3e2 100644 --- a/test/files/pos/t12006.scala +++ b/test/files/pos/t12006.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // see https://github.com/scala/bug/issues/12006 // java.io.InputStream looks like a SAM (read method), diff --git a/test/files/pos/t12159b/s_2.scala b/test/files/pos/t12159b/s_2.scala index 881204f4d83..e2d65134e15 100644 --- a/test/files/pos/t12159b/s_2.scala +++ b/test/files/pos/t12159b/s_2.scala @@ -1,5 +1,5 @@ // javaVersion: 17+ -// scalac: -Werror +//> using options -Werror package p class C { diff --git a/test/files/pos/t12186.scala b/test/files/pos/t12186.scala index b8a72238510..a1ca8e05dc6 100644 --- a/test/files/pos/t12186.scala +++ b/test/files/pos/t12186.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // this is remodeling of the scala package object and scala.collection.immutable.{ List, ::, Nil } // in order to: diff --git a/test/files/pos/t12225.scala b/test/files/pos/t12225.scala index baae67d36bf..76a8b9a2ffb 100644 --- a/test/files/pos/t12225.scala +++ b/test/files/pos/t12225.scala @@ -1,4 +1,4 @@ -// scalac: -Ydebug +//> using options -Ydebug object Test { def foo(arr: Array[Int]): Unit = { val Array(x, y) = arr diff --git a/test/files/pos/t12240.scala b/test/files/pos/t12240.scala index a04ef0e734c..7f34ab67408 100644 --- a/test/files/pos/t12240.scala +++ b/test/files/pos/t12240.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:strict-unsealed-patmat +//> using options -Xfatal-warnings -Xlint:strict-unsealed-patmat // object Test { diff --git a/test/files/pos/t12250.scala b/test/files/pos/t12250.scala index ec5be841186..38add8ba16d 100644 --- a/test/files/pos/t12250.scala +++ b/test/files/pos/t12250.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror final case class Foo(value: String) object Foo { diff --git a/test/files/pos/t12250b.scala b/test/files/pos/t12250b.scala index b47977512fd..cf84e9bea5a 100644 --- a/test/files/pos/t12250b.scala +++ b/test/files/pos/t12250b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed case class Sub1(str: String) final case class Sup1(str: String) extends Sup0 diff --git a/test/files/pos/t12254.scala b/test/files/pos/t12254.scala index a44393063d6..e9d5c084164 100644 --- a/test/files/pos/t12254.scala +++ b/test/files/pos/t12254.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint:strict-unsealed-patmat +//> using options -Xfatal-warnings -Xlint:strict-unsealed-patmat // object Test { diff --git a/test/files/pos/t12277.scala b/test/files/pos/t12277.scala index 6ec5050c9a1..8737de45ad7 100644 --- a/test/files/pos/t12277.scala +++ b/test/files/pos/t12277.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:strict-unsealed-patmat -Werror +//> using options -Xlint:strict-unsealed-patmat -Werror sealed trait A final case class B() extends A final case class C() extends A diff --git a/test/files/pos/t12304.scala b/test/files/pos/t12304.scala index 3b84224dd3a..28160f2e750 100644 --- a/test/files/pos/t12304.scala +++ b/test/files/pos/t12304.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class Foo class Test { diff --git a/test/files/pos/t12326.scala b/test/files/pos/t12326.scala index 7a8eac907c3..464a63590de 100644 --- a/test/files/pos/t12326.scala +++ b/test/files/pos/t12326.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports -Wconf:origin=scala.collection.mutable._:s,origin=scala.concurrent.ExecutionContext.Implicits._:s +//> using options -Werror -Wunused:imports -Wconf:origin=scala.collection.mutable._:s,origin=scala.concurrent.ExecutionContext.Implicits._:s import scala.collection.mutable._ diff --git a/test/files/pos/t12326b.scala b/test/files/pos/t12326b.scala index 93dfec40fdf..1b6049edad3 100644 --- a/test/files/pos/t12326b.scala +++ b/test/files/pos/t12326b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:imports +//> using options -Werror -Wunused:imports import annotation._ diff --git a/test/files/pos/t12392.scala b/test/files/pos/t12392.scala index 056fd1ae2d1..339c8898c0e 100644 --- a/test/files/pos/t12392.scala +++ b/test/files/pos/t12392.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import scala.reflect.api.Universe object Test { diff --git a/test/files/pos/t12398.scala b/test/files/pos/t12398.scala index ebd6bda4cf8..2d2708d46cd 100644 --- a/test/files/pos/t12398.scala +++ b/test/files/pos/t12398.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import scala.reflect.api.Universe object Test { diff --git a/test/files/pos/t12398b.scala b/test/files/pos/t12398b.scala index 9337a6e8e0f..546992be6d8 100644 --- a/test/files/pos/t12398b.scala +++ b/test/files/pos/t12398b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import scala.reflect.api.Universe object Test { diff --git a/test/files/pos/t12554.scala b/test/files/pos/t12554.scala index ea5880d6779..c18b46f6261 100644 --- a/test/files/pos/t12554.scala +++ b/test/files/pos/t12554.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:java.lang,scala,scala.Predef,scala.util.chaining +//> using options -Yimports:java.lang,scala,scala.Predef,scala.util.chaining class C { def f = 42.tap(println) diff --git a/test/files/pos/t12554b/s_2.scala b/test/files/pos/t12554b/s_2.scala index c4338906d2e..653d0442ccd 100644 --- a/test/files/pos/t12554b/s_2.scala +++ b/test/files/pos/t12554b/s_2.scala @@ -1,5 +1,5 @@ -// scalac: -Yimports:java.lang,scala,scala.Predef,p,q,r.Z +//> using options -Yimports:java.lang,scala,scala.Predef,p,q,r.Z object Test extends App { println(X) diff --git a/test/files/pos/t12600.scala b/test/files/pos/t12600.scala index fc86c2a9fc2..41e9b33e862 100644 --- a/test/files/pos/t12600.scala +++ b/test/files/pos/t12600.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused:_ +//> using options -Werror -Wunused:_ class Private { private type Curry[A] = { type T[B] = Either[A, B] } def m2[T[A]]: Unit = () diff --git a/test/files/pos/t12645/Macro_1.scala b/test/files/pos/t12645/Macro_1.scala index 827ba992fe7..870c84ef154 100644 --- a/test/files/pos/t12645/Macro_1.scala +++ b/test/files/pos/t12645/Macro_1.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import language.experimental.macros import scala.reflect.macros.whitebox.Context diff --git a/test/files/pos/t12645/Test_2.scala b/test/files/pos/t12645/Test_2.scala index 520bd7de7dd..ab71fab4b2b 100644 --- a/test/files/pos/t12645/Test_2.scala +++ b/test/files/pos/t12645/Test_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 object Test extends App { def f(s: String) = println(s) diff --git a/test/files/pos/t12645b/Test_2.scala b/test/files/pos/t12645b/Test_2.scala index eb9942baf84..8b5fa24c10c 100644 --- a/test/files/pos/t12645b/Test_2.scala +++ b/test/files/pos/t12645b/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 object Test extends App { Foo.ctx.quote(42).ast.id diff --git a/test/files/pos/t12645b/macro_1.scala b/test/files/pos/t12645b/macro_1.scala index 732ae1fd7d2..888390bf883 100644 --- a/test/files/pos/t12645b/macro_1.scala +++ b/test/files/pos/t12645b/macro_1.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import scala.language.experimental.macros import scala.reflect.macros.whitebox.Context diff --git a/test/files/pos/t12646.scala b/test/files/pos/t12646.scala index 72118974d5f..b0e3f66f5b9 100644 --- a/test/files/pos/t12646.scala +++ b/test/files/pos/t12646.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Wunused:params +//> using options -Werror -Wunused:params trait T { private var x: String = _ diff --git a/test/files/pos/t12647/Macro_1.scala b/test/files/pos/t12647/Macro_1.scala index a808e46089a..cbec50a79d1 100644 --- a/test/files/pos/t12647/Macro_1.scala +++ b/test/files/pos/t12647/Macro_1.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import scala.reflect.macros.whitebox.Context diff --git a/test/files/pos/t12647/Resolve_2.scala b/test/files/pos/t12647/Resolve_2.scala index dab65c6a310..97cc4c35400 100644 --- a/test/files/pos/t12647/Resolve_2.scala +++ b/test/files/pos/t12647/Resolve_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import language.experimental.macros diff --git a/test/files/pos/t12647/Test_3.scala b/test/files/pos/t12647/Test_3.scala index 152e5ddc4aa..e2fc19f4685 100644 --- a/test/files/pos/t12647/Test_3.scala +++ b/test/files/pos/t12647/Test_3.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 object Test extends App { val resolver = new ValueResolver diff --git a/test/files/pos/t12671.scala b/test/files/pos/t12671.scala index 9db7ec76075..65dfa3dcc7e 100644 --- a/test/files/pos/t12671.scala +++ b/test/files/pos/t12671.scala @@ -1,5 +1,5 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 import scala.collection.{mutable, IterableOnce} import scala.collection.immutable.{AbstractSet, Set, SetOps} diff --git a/test/files/pos/t12712.scala b/test/files/pos/t12712.scala index 195743b4677..59d8f450481 100644 --- a/test/files/pos/t12712.scala +++ b/test/files/pos/t12712.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object T { private sealed trait T private object O extends T diff --git a/test/files/pos/t12787.scala b/test/files/pos/t12787.scala index e32f880264c..3d1f1be6fea 100644 --- a/test/files/pos/t12787.scala +++ b/test/files/pos/t12787.scala @@ -1,5 +1,5 @@ -// scalac: -opt:inline: -Wopt -Werror +//> using options -opt:inline: -Wopt -Werror // skalac: -opt:inline: -Vopt:C -Wopt -Werror // > using scala 2.13.nightly diff --git a/test/files/pos/t12792.scala b/test/files/pos/t12792.scala index 120c6862363..6a685532570 100644 --- a/test/files/pos/t12792.scala +++ b/test/files/pos/t12792.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint import annotation._ diff --git a/test/files/pos/t12800/matcher_1.scala b/test/files/pos/t12800/matcher_1.scala index e305f9717a6..52912d2a97f 100644 --- a/test/files/pos/t12800/matcher_1.scala +++ b/test/files/pos/t12800/matcher_1.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xsource:3 +//> using options -Werror -Xsource:3 import JetBrains.* diff --git a/test/files/pos/t12812.scala b/test/files/pos/t12812.scala index 79c35540b26..e4b84fe79fb 100644 --- a/test/files/pos/t12812.scala +++ b/test/files/pos/t12812.scala @@ -1,5 +1,5 @@ -// scalac: -Werror -Xsource:3 -language:postfixOps -Xlint +//> using options -Werror -Xsource:3 -language:postfixOps -Xlint class C { def foo(max: Int) = (1 to max).map(1 to).foreach(r => println(r.mkString(","))) diff --git a/test/files/pos/t12830.scala b/test/files/pos/t12830.scala index 2bce19c6d96..90e1a8a7f23 100644 --- a/test/files/pos/t12830.scala +++ b/test/files/pos/t12830.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 class C { def i: Int = 42 diff --git a/test/files/pos/t12851/C_2.scala b/test/files/pos/t12851/C_2.scala index 4e5334029e1..859df816094 100644 --- a/test/files/pos/t12851/C_2.scala +++ b/test/files/pos/t12851/C_2.scala @@ -1,2 +1,2 @@ -// scalac: -Werror +//> using options -Werror class C extends T2 diff --git a/test/files/pos/t12858/B.scala b/test/files/pos/t12858/B.scala index 36275173ecb..3611602cbf1 100644 --- a/test/files/pos/t12858/B.scala +++ b/test/files/pos/t12858/B.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror trait B1 extends A { def f: Int } trait C1 { def f = 2 } diff --git a/test/files/pos/t1439.scala b/test/files/pos/t1439.scala index baef9d60d03..df8fed01656 100644 --- a/test/files/pos/t1439.scala +++ b/test/files/pos/t1439.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror // no unchecked warnings class View[C[A]] { } diff --git a/test/files/pos/t2030.scala b/test/files/pos/t2030.scala index 4a70cf66282..60260e5ae53 100644 --- a/test/files/pos/t2030.scala +++ b/test/files/pos/t2030.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3.0 +//> using options -Xsource:3.0 import scala.collection.immutable._ object Test extends App { diff --git a/test/files/pos/t2799.scala b/test/files/pos/t2799.scala index fb951471494..9cefaefc38b 100644 --- a/test/files/pos/t2799.scala +++ b/test/files/pos/t2799.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror @deprecated("hi mom", "") case class Bob () diff --git a/test/files/pos/t3234.scala b/test/files/pos/t3234.scala index bd2746ca941..1b1769aadff 100644 --- a/test/files/pos/t3234.scala +++ b/test/files/pos/t3234.scala @@ -1,5 +1,5 @@ -// scalac: -opt:inline:** -Wopt -Werror +//> using options -opt:inline:** -Wopt -Werror // trait Trait1 { @inline final def foo2(n: Int) = n*n diff --git a/test/files/pos/t3368.scala b/test/files/pos/t3368.scala index 4984f5b2399..ba9bf05117d 100644 --- a/test/files/pos/t3368.scala +++ b/test/files/pos/t3368.scala @@ -1,5 +1,5 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // trait X { // error: in XML literal: name expected, but char '!' cannot start a name diff --git a/test/files/pos/t3420.scala b/test/files/pos/t3420.scala index 0d0bc9a0ab7..962a0ab437f 100644 --- a/test/files/pos/t3420.scala +++ b/test/files/pos/t3420.scala @@ -1,5 +1,5 @@ -// scalac: -opt:inline:** -Wopt -Werror +//> using options -opt:inline:** -Wopt -Werror // class C { val cv = Map[Int, Int](1 -> 2) diff --git a/test/files/pos/t3420b.scala b/test/files/pos/t3420b.scala index 6b5f6101963..84471c995d0 100644 --- a/test/files/pos/t3420b.scala +++ b/test/files/pos/t3420b.scala @@ -1,5 +1,5 @@ -// scalac: --release 8 -opt:inline:** -Wopt -Werror +//> using options --release 8 -opt:inline:** -Wopt -Werror // class C { val cv = Map[Int, Int](1 -> 2) diff --git a/test/files/pos/t3495.scala b/test/files/pos/t3495.scala index bcbc3ebfdc9..5dfd28328ce 100644 --- a/test/files/pos/t3495.scala +++ b/test/files/pos/t3495.scala @@ -1,5 +1,5 @@ -// scalac: -Dsoot.class.path=bin:. +//> using options -Dsoot.class.path=bin:. // // option parsing broke on colon // diff --git a/test/files/pos/t3960.scala b/test/files/pos/t3960.scala index ed3fd8d8765..6452a645cee 100644 --- a/test/files/pos/t3960.scala +++ b/test/files/pos/t3960.scala @@ -1,5 +1,5 @@ -// scalac: -Ycheck:typer +//> using options -Ycheck:typer // class A { class C[x] diff --git a/test/files/pos/t3995.scala b/test/files/pos/t3995.scala index 8babe50baf3..3a4cdebbf00 100644 --- a/test/files/pos/t3995.scala +++ b/test/files/pos/t3995.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // class Lift { def apply(f: F0): Unit = {} diff --git a/test/files/pos/t4020.scala b/test/files/pos/t4020.scala index daba560bed8..fb620e98c89 100644 --- a/test/files/pos/t4020.scala +++ b/test/files/pos/t4020.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A { sealed trait Foo diff --git a/test/files/pos/t4225.scala b/test/files/pos/t4225.scala index 03bb01f9ad6..e6f82cd7d1e 100644 --- a/test/files/pos/t4225.scala +++ b/test/files/pos/t4225.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test { class Foo { diff --git a/test/files/pos/t4225b.scala b/test/files/pos/t4225b.scala index 2c3133c33fc..fc66213b2d4 100644 --- a/test/files/pos/t4225b.scala +++ b/test/files/pos/t4225b.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // class Foo { class Bar diff --git a/test/files/pos/t4225c.scala b/test/files/pos/t4225c.scala index a5d3b9ae06a..0868f5a226a 100644 --- a/test/files/pos/t4225c.scala +++ b/test/files/pos/t4225c.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // trait A trait B diff --git a/test/files/pos/t4494.scala b/test/files/pos/t4494.scala index 0e78f83a2b8..a90fc88e744 100644 --- a/test/files/pos/t4494.scala +++ b/test/files/pos/t4494.scala @@ -1,5 +1,5 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object A { List(1) diff --git a/test/files/pos/t4649.scala b/test/files/pos/t4649.scala index 4cfa8ac995c..a00121f2eed 100644 --- a/test/files/pos/t4649.scala +++ b/test/files/pos/t4649.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { // @annotation.tailrec diff --git a/test/files/pos/t4744/Bar.scala b/test/files/pos/t4744/Bar.scala index 01182d0a9a9..4d20c49eb56 100644 --- a/test/files/pos/t4744/Bar.scala +++ b/test/files/pos/t4744/Bar.scala @@ -1,2 +1,2 @@ -// scalac: -Ybreak-cycles +//> using options -Ybreak-cycles class Bar { val quux = new Foo[java.lang.Integer]() } diff --git a/test/files/pos/t4840.scala b/test/files/pos/t4840.scala index b31d37b1ab3..921da5e8ca6 100644 --- a/test/files/pos/t4840.scala +++ b/test/files/pos/t4840.scala @@ -1,5 +1,5 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt // class Crashy { def g(): Option[Any] = None diff --git a/test/files/pos/t4911.scala b/test/files/pos/t4911.scala index ba2daa367dd..efae95df97d 100644 --- a/test/files/pos/t4911.scala +++ b/test/files/pos/t4911.scala @@ -1,5 +1,5 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import language._ diff --git a/test/files/pos/t5029.scala b/test/files/pos/t5029.scala index c8af164c1d1..d423d1ba124 100644 --- a/test/files/pos/t5029.scala +++ b/test/files/pos/t5029.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { (Vector(): Seq[_]) match { case List() => true; case Nil => false; case x => throw new MatchError(x) } diff --git a/test/files/pos/t5165b/TestObject_3.scala b/test/files/pos/t5165b/TestObject_3.scala index fba846c0be6..68f85d53a47 100644 --- a/test/files/pos/t5165b/TestObject_3.scala +++ b/test/files/pos/t5165b/TestObject_3.scala @@ -1,3 +1,3 @@ -// scalac: -Werror +//> using options -Werror object TestObject extends TestTrait diff --git a/test/files/pos/t5165b/TestTrait_2.scala b/test/files/pos/t5165b/TestTrait_2.scala index 1c1a560378c..94a7e4b9262 100644 --- a/test/files/pos/t5165b/TestTrait_2.scala +++ b/test/files/pos/t5165b/TestTrait_2.scala @@ -1,3 +1,3 @@ -// scalac: -Werror +//> using options -Werror @TestAnnotation_1(one=TestAnnotation_1.TestEnumOne.A, two=TestAnnotation_1.TestEnumTwo.C, strVal="something") trait TestTrait diff --git a/test/files/pos/t5175.scala b/test/files/pos/t5175.scala index 37501ca5291..b3da323650d 100644 --- a/test/files/pos/t5175.scala +++ b/test/files/pos/t5175.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def ==(p: Phase): Int = 0 diff --git a/test/files/pos/t5265a.scala b/test/files/pos/t5265a.scala index 95db6ec743e..b8c465d85e1 100644 --- a/test/files/pos/t5265a.scala +++ b/test/files/pos/t5265a.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wconf:cat=other-implicit-type:s +//> using options -Werror -Wconf:cat=other-implicit-type:s trait T[A] class C[A: T] diff --git a/test/files/pos/t5365-nonStrict.scala b/test/files/pos/t5365-nonStrict.scala index 3934ea7b7f6..c71ff102b05 100644 --- a/test/files/pos/t5365-nonStrict.scala +++ b/test/files/pos/t5365-nonStrict.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xnon-strict-patmat-analysis +//> using options -Werror -Xnon-strict-patmat-analysis // // copy of neg/t5365.scala, which under -Xnon-strict-patmat-analysis gives no warnings class C { diff --git a/test/files/pos/t5542.scala b/test/files/pos/t5542.scala index 3f79d7e3f42..816d371dcf3 100644 --- a/test/files/pos/t5542.scala +++ b/test/files/pos/t5542.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Test { Option(3) match { case Some(n) => n; case None => 0 } diff --git a/test/files/pos/t5809.scala b/test/files/pos/t5809.scala index ab8fa12969f..ef41fd0db6e 100644 --- a/test/files/pos/t5809.scala +++ b/test/files/pos/t5809.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings // package object foo { implicit class EnrichedInt(foo: Int) { diff --git a/test/files/pos/t5818.scala b/test/files/pos/t5818.scala index 6948c0d08f7..cdea6899b8e 100644 --- a/test/files/pos/t5818.scala +++ b/test/files/pos/t5818.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // abstract class Abstract { type TypeMember diff --git a/test/files/pos/t5897.scala b/test/files/pos/t5897.scala index 64b7ce139ea..61599eff22e 100644 --- a/test/files/pos/t5897.scala +++ b/test/files/pos/t5897.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // no warning here // (strangely, if there's an unreachable code warning *anywhere in this compilation unit*, diff --git a/test/files/pos/t5899.scala b/test/files/pos/t5899.scala index f3e9dd002b1..b94f845605a 100644 --- a/test/files/pos/t5899.scala +++ b/test/files/pos/t5899.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.tools.nsc._ diff --git a/test/files/pos/t5930.scala b/test/files/pos/t5930.scala index bdcb43ecd62..0abbcaf9709 100644 --- a/test/files/pos/t5930.scala +++ b/test/files/pos/t5930.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-dead-code -Xfatal-warnings +//> using options -Ywarn-dead-code -Xfatal-warnings // // should not warn about dead code (`matchEnd(throw new MatchError)`) class Test { diff --git a/test/files/pos/t5932.scala b/test/files/pos/t5932.scala index 5c9630cd6c1..904ef3708c7 100644 --- a/test/files/pos/t5932.scala +++ b/test/files/pos/t5932.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A diff --git a/test/files/pos/t5946.scala b/test/files/pos/t5946.scala index a0680546862..6c5008f7a18 100644 --- a/test/files/pos/t5946.scala +++ b/test/files/pos/t5946.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object TestDep { class Ops(val g: scala.reflect.api.JavaUniverse) { diff --git a/test/files/pos/t5954c/A_1.scala b/test/files/pos/t5954c/A_1.scala index 2affe3b7cb1..f61fb978a56 100644 --- a/test/files/pos/t5954c/A_1.scala +++ b/test/files/pos/t5954c/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package object A { // these used to should be prevented by the implementation restriction // but are now allowed diff --git a/test/files/pos/t5954c/B_2.scala b/test/files/pos/t5954c/B_2.scala index 2affe3b7cb1..f61fb978a56 100644 --- a/test/files/pos/t5954c/B_2.scala +++ b/test/files/pos/t5954c/B_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package object A { // these used to should be prevented by the implementation restriction // but are now allowed diff --git a/test/files/pos/t5954d/A_1.scala b/test/files/pos/t5954d/A_1.scala index 57039b9767b..cfd32660649 100644 --- a/test/files/pos/t5954d/A_1.scala +++ b/test/files/pos/t5954d/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xdev +//> using options -Werror -Xdev package p { package object base { class B diff --git a/test/files/pos/t5954d/B_2.scala b/test/files/pos/t5954d/B_2.scala index e83f1fda2a9..d89c7ceef10 100644 --- a/test/files/pos/t5954d/B_2.scala +++ b/test/files/pos/t5954d/B_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xdev +//> using options -Werror -Xdev package p { trait T { class B diff --git a/test/files/pos/t5968.scala b/test/files/pos/t5968.scala index 4b99bf476da..ac59997ee29 100644 --- a/test/files/pos/t5968.scala +++ b/test/files/pos/t5968.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object X { def f(e: Either[Int, X.type]) = e match { diff --git a/test/files/pos/t6008.scala b/test/files/pos/t6008.scala index 3a815cb933c..447d0a0ce71 100644 --- a/test/files/pos/t6008.scala +++ b/test/files/pos/t6008.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // none of these should complain about exhaustivity class Test { diff --git a/test/files/pos/t6022.scala b/test/files/pos/t6022.scala index 8a1a8581af6..a28bb7dabda 100644 --- a/test/files/pos/t6022.scala +++ b/test/files/pos/t6022.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class Test { (null: Any) match { diff --git a/test/files/pos/t6091.scala b/test/files/pos/t6091.scala index 82d9a9c5b6f..8ce694e643c 100644 --- a/test/files/pos/t6091.scala +++ b/test/files/pos/t6091.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Xlint +//> using options -Xfatal-warnings -Xlint // object Foo { def eq(x: Int) = x } diff --git a/test/files/pos/t6123-explaintypes-implicits.scala b/test/files/pos/t6123-explaintypes-implicits.scala index 3d5c0e4ee2e..38ba0cae332 100644 --- a/test/files/pos/t6123-explaintypes-implicits.scala +++ b/test/files/pos/t6123-explaintypes-implicits.scala @@ -1,4 +1,4 @@ -// scalac: -explaintypes +//> using options -explaintypes // object ImplicitBugReport { trait Exp[+T] diff --git a/test/files/pos/t6146.scala b/test/files/pos/t6146.scala index adb8f760f83..9c7d37b5fef 100644 --- a/test/files/pos/t6146.scala +++ b/test/files/pos/t6146.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // No unreachable or exhaustiveness warnings, please. diff --git a/test/files/pos/t6159.scala b/test/files/pos/t6159.scala index 0863350323e..af68e1ca3c5 100644 --- a/test/files/pos/t6159.scala +++ b/test/files/pos/t6159.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror trait A { sealed abstract class X private class X1 extends X with X2 { } diff --git a/test/files/pos/t6162-inheritance.scala b/test/files/pos/t6162-inheritance.scala index b83b3d16e12..e0662833836 100644 --- a/test/files/pos/t6162-inheritance.scala +++ b/test/files/pos/t6162-inheritance.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // package scala.t6126 diff --git a/test/files/pos/t6210.scala b/test/files/pos/t6210.scala index 3cbd7707f12..44ae23511dc 100644 --- a/test/files/pos/t6210.scala +++ b/test/files/pos/t6210.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // abstract sealed trait AST abstract sealed trait AExpr extends AST diff --git a/test/files/pos/t6217.scala b/test/files/pos/t6217.scala index 45b19c6138c..8695bf90b2e 100644 --- a/test/files/pos/t6217.scala +++ b/test/files/pos/t6217.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings package p { package _root_ { package scala { diff --git a/test/files/pos/t6260.scala b/test/files/pos/t6260.scala index 80a70ec412e..b09668f825e 100644 --- a/test/files/pos/t6260.scala +++ b/test/files/pos/t6260.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline // class Box[X](val x: X) extends AnyVal { def map[Y](f: X => Y): Box[Y] = diff --git a/test/files/pos/t6275.scala b/test/files/pos/t6275.scala index 00033b7fd93..1ba9fac1488 100644 --- a/test/files/pos/t6275.scala +++ b/test/files/pos/t6275.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait A[T] diff --git a/test/files/pos/t6450.scala b/test/files/pos/t6450.scala index 7dc6b36e491..39aa6307f9f 100644 --- a/test/files/pos/t6450.scala +++ b/test/files/pos/t6450.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object ExhaustivityWarnBugReportMinimal { //sealed is needed for the warning sealed trait FoundNode[T]/*presence of parameters is irrelevant*/ diff --git a/test/files/pos/t6537.scala b/test/files/pos/t6537.scala index 0320508b320..0d5712b5452 100644 --- a/test/files/pos/t6537.scala +++ b/test/files/pos/t6537.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // package tester diff --git a/test/files/pos/t6675.scala b/test/files/pos/t6675.scala index ed16807b61d..bd9624ff004 100644 --- a/test/files/pos/t6675.scala +++ b/test/files/pos/t6675.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // object LeftOrRight { def unapply[A](value: Either[A, A]): Option[A] = value match { diff --git a/test/files/pos/t6771.scala b/test/files/pos/t6771.scala index d6781f64067..5e34b4baff4 100644 --- a/test/files/pos/t6771.scala +++ b/test/files/pos/t6771.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { type Id[X] = X diff --git a/test/files/pos/t6891.scala b/test/files/pos/t6891.scala index 696eb81a7ee..9884bf3bda1 100644 --- a/test/files/pos/t6891.scala +++ b/test/files/pos/t6891.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:extmethods -Xfatal-warnings +//> using options -Ycheck:extmethods -Xfatal-warnings // object O { implicit class Foo[A](val value: String) extends AnyVal { diff --git a/test/files/pos/t6896.scala b/test/files/pos/t6896.scala index 022bff5c2f3..404d343e0c7 100644 --- a/test/files/pos/t6896.scala +++ b/test/files/pos/t6896.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object TooManyMains { def main(args: Array[String]): Unit = { diff --git a/test/files/pos/t6942/t6942.scala b/test/files/pos/t6942/t6942.scala index 15874c90f1a..9a7440e455d 100644 --- a/test/files/pos/t6942/t6942.scala +++ b/test/files/pos/t6942/t6942.scala @@ -1,4 +1,4 @@ -// scalac: -nowarn +//> using options -nowarn // // not a peep out of the pattern matcher's unreachability analysis // its budget should suffice for these simple matches (they do have a large search space) diff --git a/test/files/pos/t6978/S.scala b/test/files/pos/t6978/S.scala index f5694c81d52..dad2d950a9a 100644 --- a/test/files/pos/t6978/S.scala +++ b/test/files/pos/t6978/S.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings trait X { def f: Int } object Test extends J with X with App { diff --git a/test/files/pos/t6994.scala b/test/files/pos/t6994.scala index 34c65858fcc..143c75d329d 100644 --- a/test/files/pos/t6994.scala +++ b/test/files/pos/t6994.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { object NF { diff --git a/test/files/pos/t7011.scala b/test/files/pos/t7011.scala index c508bfd9e6b..ff2b15e1bb2 100644 --- a/test/files/pos/t7011.scala +++ b/test/files/pos/t7011.scala @@ -1,4 +1,4 @@ -// scalac: -Ydebug -Xfatal-warnings +//> using options -Ydebug -Xfatal-warnings // object bar { def foo: Unit = { diff --git a/test/files/pos/t7183.scala b/test/files/pos/t7183.scala index 38476f5c9ed..488924f7d4c 100644 --- a/test/files/pos/t7183.scala +++ b/test/files/pos/t7183.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A object A { diff --git a/test/files/pos/t7232/Test.scala b/test/files/pos/t7232/Test.scala index 990989bffc6..798bb11235e 100644 --- a/test/files/pos/t7232/Test.scala +++ b/test/files/pos/t7232/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ Foo.okay().size() diff --git a/test/files/pos/t7232b/Test.scala b/test/files/pos/t7232b/Test.scala index 3832ca98fb4..6675688722c 100644 --- a/test/files/pos/t7232b/Test.scala +++ b/test/files/pos/t7232b/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ diff --git a/test/files/pos/t7232c/Test.scala b/test/files/pos/t7232c/Test.scala index 799701b85b3..48ce6634018 100644 --- a/test/files/pos/t7232c/Test.scala +++ b/test/files/pos/t7232c/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ Foo.innerList().isInnerList() diff --git a/test/files/pos/t7232d/Test.scala b/test/files/pos/t7232d/Test.scala index 88631c4bea0..af3b5f05ded 100644 --- a/test/files/pos/t7232d/Test.scala +++ b/test/files/pos/t7232d/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ Foo.mapEntry().getKey() diff --git a/test/files/pos/t7232e/Test.scala b/test/files/pos/t7232e/Test.scala index 09edcabcbe0..aad5788927c 100644 --- a/test/files/pos/t7232e/Test.scala +++ b/test/files/pos/t7232e/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ diff --git a/test/files/pos/t7232g/Test.scala b/test/files/pos/t7232g/Test.scala index b8dde38e01d..1f73d9edff6 100644 --- a/test/files/pos/t7232g/Test.scala +++ b/test/files/pos/t7232g/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { import pack._ diff --git a/test/files/pos/t7285a.scala b/test/files/pos/t7285a.scala index a17fe075a0c..1f1c1e1c652 100644 --- a/test/files/pos/t7285a.scala +++ b/test/files/pos/t7285a.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class Base diff --git a/test/files/pos/t7315.scala b/test/files/pos/t7315.scala index a593957fcd3..bb59cf5b14a 100644 --- a/test/files/pos/t7315.scala +++ b/test/files/pos/t7315.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation -Xfatal-warnings +//> using options -deprecation -Xfatal-warnings // package scala.pack diff --git a/test/files/pos/t7369.scala b/test/files/pos/t7369.scala index 55e13822061..8234eeb9d2e 100644 --- a/test/files/pos/t7369.scala +++ b/test/files/pos/t7369.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { val X, Y = true diff --git a/test/files/pos/t7427.scala b/test/files/pos/t7427.scala index 15d5baba059..2050702e4ad 100644 --- a/test/files/pos/t7427.scala +++ b/test/files/pos/t7427.scala @@ -1,4 +1,4 @@ -// scalac: -Ydebug +//> using options -Ydebug // // Compiles with no options // Compiles with -Ydebug -Ydisable-unreachable-prevention diff --git a/test/files/pos/t7433.scala b/test/files/pos/t7433.scala index 07b4dd2b778..16015b178a4 100644 --- a/test/files/pos/t7433.scala +++ b/test/files/pos/t7433.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { def foo(): Unit = { diff --git a/test/files/pos/t7481.scala b/test/files/pos/t7481.scala index 0f9b012042a..c419d1f20eb 100644 --- a/test/files/pos/t7481.scala +++ b/test/files/pos/t7481.scala @@ -1,5 +1,5 @@ -// scalac: -no-specialization +//> using options -no-specialization object Test { // val fixesCompile = Array(1, 2, 3) diff --git a/test/files/pos/t7551/T_1.scala b/test/files/pos/t7551/T_1.scala index ac41dceca61..86e3d0d0ac2 100644 --- a/test/files/pos/t7551/T_1.scala +++ b/test/files/pos/t7551/T_1.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package p @A(subInterface = classOf[T.S]) diff --git a/test/files/pos/t7551/Test_2.scala b/test/files/pos/t7551/Test_2.scala index 2ca9c0c8d6b..a8b0e508c49 100644 --- a/test/files/pos/t7551/Test_2.scala +++ b/test/files/pos/t7551/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package p object Foo { diff --git a/test/files/pos/t7649.scala b/test/files/pos/t7649.scala index 3d7867536aa..58db3e8cf0f 100644 --- a/test/files/pos/t7649.scala +++ b/test/files/pos/t7649.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test { val c: scala.reflect.macros.blackbox.Context = ??? diff --git a/test/files/pos/t7683-stop-after-parser/sample_2.scala b/test/files/pos/t7683-stop-after-parser/sample_2.scala index 0547d7212a8..bc08be642a6 100644 --- a/test/files/pos/t7683-stop-after-parser/sample_2.scala +++ b/test/files/pos/t7683-stop-after-parser/sample_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Xplugin-require:timebomb -Ystop-after:parser +//> using options -Xplugin:. -Xplugin-require:timebomb -Ystop-after:parser package sample // just a sample that is compiled with the explosive plugin disabled diff --git a/test/files/pos/t7707.scala b/test/files/pos/t7707.scala index f47d0b19ad7..fee40c2862a 100644 --- a/test/files/pos/t7707.scala +++ b/test/files/pos/t7707.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // uses apply default, ctor default is unused object O { O() ; def f(): Unit = O() } diff --git a/test/files/pos/t7750.scala b/test/files/pos/t7750.scala index 29aad6461ec..b0e509072f3 100644 --- a/test/files/pos/t7750.scala +++ b/test/files/pos/t7750.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -feature +//> using options -Xfatal-warnings -feature // trait LazyCombiner[Elem, +To, Buff <: Growable[Elem] with Sizing] trait Growable[T] diff --git a/test/files/pos/t7864.scala b/test/files/pos/t7864.scala index 6ddec312035..10f1b926e1b 100644 --- a/test/files/pos/t7864.scala +++ b/test/files/pos/t7864.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint +//> using options -Xlint // object Test { val f = 0; diff --git a/test/files/pos/t8001/Test_2.scala b/test/files/pos/t8001/Test_2.scala index 10d9f9408b0..9db1f4636be 100644 --- a/test/files/pos/t8001/Test_2.scala +++ b/test/files/pos/t8001/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test extends App { Macros.foo (): Unit diff --git a/test/files/pos/t8040.scala b/test/files/pos/t8040.scala index 48ecbae192f..f55ce3c166e 100644 --- a/test/files/pos/t8040.scala +++ b/test/files/pos/t8040.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -Ywarn-unused:params +//> using options -Xfatal-warnings -Ywarn-unused:params // object Test { diff --git a/test/files/pos/t8064/Client_2.scala b/test/files/pos/t8064/Client_2.scala index 64ce75cbdee..2604c0020da 100644 --- a/test/files/pos/t8064/Client_2.scala +++ b/test/files/pos/t8064/Client_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos object Test { Macro { def s = "" diff --git a/test/files/pos/t8064/Macro_1.scala b/test/files/pos/t8064/Macro_1.scala index c8de31aad5c..b67fcc34bbb 100644 --- a/test/files/pos/t8064/Macro_1.scala +++ b/test/files/pos/t8064/Macro_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos import language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/pos/t8064b/Client_2.scala b/test/files/pos/t8064b/Client_2.scala index 6eac7dc4184..60433dab0f3 100644 --- a/test/files/pos/t8064b/Client_2.scala +++ b/test/files/pos/t8064b/Client_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos object Test { Macro { "".reverse diff --git a/test/files/pos/t8064b/Macro_1.scala b/test/files/pos/t8064b/Macro_1.scala index 941f7ffd246..88b89d4946c 100644 --- a/test/files/pos/t8064b/Macro_1.scala +++ b/test/files/pos/t8064b/Macro_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos import language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/pos/t8121/B_2.scala b/test/files/pos/t8121/B_2.scala index a6e3792c6ca..660dfd6791e 100644 --- a/test/files/pos/t8121/B_2.scala +++ b/test/files/pos/t8121/B_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror package b import a.Foo class Foo diff --git a/test/files/pos/t8363.scala b/test/files/pos/t8363.scala index e681bf2e723..b076d5a6a46 100644 --- a/test/files/pos/t8363.scala +++ b/test/files/pos/t8363.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method // class C(a: Any) class Test { diff --git a/test/files/pos/t8410.scala b/test/files/pos/t8410.scala index 6b420efd894..e4e80936706 100644 --- a/test/files/pos/t8410.scala +++ b/test/files/pos/t8410.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt:none -Werror -deprecation:false +//> using options -opt:inline:** -Wopt:none -Werror -deprecation:false // object Test extends App { diff --git a/test/files/pos/t8523.scala b/test/files/pos/t8523.scala index 6cc30b86977..b70a4cdc2ee 100644 --- a/test/files/pos/t8523.scala +++ b/test/files/pos/t8523.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-dead-code -Xfatal-warnings +//> using options -Ywarn-dead-code -Xfatal-warnings // import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/pos/t8546.scala b/test/files/pos/t8546.scala index d349f58d169..da374f427f0 100644 --- a/test/files/pos/t8546.scala +++ b/test/files/pos/t8546.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // package test diff --git a/test/files/pos/t8578.scala b/test/files/pos/t8578.scala index 41ce9afc9e6..be5be85156b 100644 --- a/test/files/pos/t8578.scala +++ b/test/files/pos/t8578.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method // class DuplicateClassName { () => { diff --git a/test/files/pos/t8596.scala b/test/files/pos/t8596.scala index 41126bbb0ee..d414dd0622a 100644 --- a/test/files/pos/t8596.scala +++ b/test/files/pos/t8596.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // class TypeTreeObjects { class Container { diff --git a/test/files/pos/t8602.scala b/test/files/pos/t8602.scala index 3ab5e15a445..b8502b646d8 100644 --- a/test/files/pos/t8602.scala +++ b/test/files/pos/t8602.scala @@ -1,4 +1,4 @@ -// scalac: -language:higherKinds +//> using options -language:higherKinds // object Test { case class Foo[CC[_], D <: CC[Int]](d: D, cc: CC[Int]) diff --git a/test/files/pos/t8617.scala b/test/files/pos/t8617.scala index df5508ff1ca..3f353fafe8b 100644 --- a/test/files/pos/t8617.scala +++ b/test/files/pos/t8617.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test { def foo[A] = implicitly[OptManifest[A]] // was "unpositioned tree" under -Yrangepos diff --git a/test/files/pos/t8736-b.scala b/test/files/pos/t8736-b.scala index 903292d2329..1c96b7fd30f 100644 --- a/test/files/pos/t8736-b.scala +++ b/test/files/pos/t8736-b.scala @@ -1,4 +1,4 @@ -// scalac: -feature -language:_ -Xfatal-warnings +//> using options -feature -language:_ -Xfatal-warnings // showing that all are set class X { def hk[M[_]] = ??? diff --git a/test/files/pos/t8736.scala b/test/files/pos/t8736.scala index 46c0cdfd000..5768f5f9533 100644 --- a/test/files/pos/t8736.scala +++ b/test/files/pos/t8736.scala @@ -1,4 +1,4 @@ -// scalac: -feature -language:implicitConversions -language:higherKinds -language:-implicitConversions -Xfatal-warnings +//> using options -feature -language:implicitConversions -language:higherKinds -language:-implicitConversions -Xfatal-warnings // showing that multiple settings are respected, and explicit enablement has precedence class X { def hk[M[_]] = ??? diff --git a/test/files/pos/t8781/Test_2.scala b/test/files/pos/t8781/Test_2.scala index d7237eb54c4..c67c7daab08 100644 --- a/test/files/pos/t8781/Test_2.scala +++ b/test/files/pos/t8781/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ymacro-expand:discard -Ystop-after:typer +//> using options -Ymacro-expand:discard -Ystop-after:typer // object Test { implicit class RichT(t: T) { def augmented = "" } diff --git a/test/files/pos/t8828.scala b/test/files/pos/t8828.scala index 3058aa54383..5015a785157 100644 --- a/test/files/pos/t8828.scala +++ b/test/files/pos/t8828.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:inaccessible -Xfatal-warnings +//> using options -Xlint:inaccessible -Xfatal-warnings // package outer diff --git a/test/files/pos/t8861.scala b/test/files/pos/t8861.scala index 74d5a8be549..a560bba1be9 100644 --- a/test/files/pos/t8861.scala +++ b/test/files/pos/t8861.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:infer-any -Xfatal-warnings +//> using options -Xlint:infer-any -Xfatal-warnings // trait Test { diff --git a/test/files/pos/t8934a/Test_2.scala b/test/files/pos/t8934a/Test_2.scala index ecc922db085..6b25ad28c0b 100644 --- a/test/files/pos/t8934a/Test_2.scala +++ b/test/files/pos/t8934a/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:typer -Ymacro-expand:discard -nowarn +//> using options -Ystop-after:typer -Ymacro-expand:discard -nowarn object Test { "" match { case Unapply(a, b) => diff --git a/test/files/pos/t8954/t1.scala b/test/files/pos/t8954/t1.scala index 1f015a7d48d..ccd5cb71b28 100644 --- a/test/files/pos/t8954/t1.scala +++ b/test/files/pos/t8954/t1.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation package scala.foo // 1. a class about to be made final diff --git a/test/files/pos/t8954/t2.scala b/test/files/pos/t8954/t2.scala index 899ad407015..5002a62a096 100644 --- a/test/files/pos/t8954/t2.scala +++ b/test/files/pos/t8954/t2.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings -deprecation +//> using options -Xfatal-warnings -deprecation package scala.foo // 1.2 deprecated children should be fine... diff --git a/test/files/pos/t8965.scala b/test/files/pos/t8965.scala index 6386fd99686..729777049d1 100644 --- a/test/files/pos/t8965.scala +++ b/test/files/pos/t8965.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // class A { def f(x: Any with AnyRef, y: Any with AnyRef) = x eq y diff --git a/test/files/pos/t8999.scala b/test/files/pos/t8999.scala index 4ec64da9bb6..23b3870b812 100644 --- a/test/files/pos/t8999.scala +++ b/test/files/pos/t8999.scala @@ -1,4 +1,4 @@ -// scalac: -nowarn +//> using options -nowarn // object Types { diff --git a/test/files/pos/t9020.scala b/test/files/pos/t9020.scala index 679af42f2aa..a882772581a 100644 --- a/test/files/pos/t9020.scala +++ b/test/files/pos/t9020.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-value-discard -Xfatal-warnings +//> using options -Ywarn-value-discard -Xfatal-warnings // trait ValueDiscard[@specialized U] { def u: U diff --git a/test/files/pos/t9111-inliner-workaround/Test_1.scala b/test/files/pos/t9111-inliner-workaround/Test_1.scala index dd9a7074be5..d8124076edc 100644 --- a/test/files/pos/t9111-inliner-workaround/Test_1.scala +++ b/test/files/pos/t9111-inliner-workaround/Test_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt // object Test extends App { println(new A_1.Inner()) diff --git a/test/files/pos/t9220.scala b/test/files/pos/t9220.scala index fc09b9a259a..660791b6f94 100644 --- a/test/files/pos/t9220.scala +++ b/test/files/pos/t9220.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { trait Command diff --git a/test/files/pos/t9285.scala b/test/files/pos/t9285.scala index c9c17cbc1ea..03e3f0e1691 100644 --- a/test/files/pos/t9285.scala +++ b/test/files/pos/t9285.scala @@ -1,3 +1,3 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // case class C(placeholder: Unit) diff --git a/test/files/pos/t9369.scala b/test/files/pos/t9369.scala index 2e31eb31f24..15ecc710321 100644 --- a/test/files/pos/t9369.scala +++ b/test/files/pos/t9369.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test { diff --git a/test/files/pos/t9370/sample_2.scala b/test/files/pos/t9370/sample_2.scala index 8326f3ad9e0..70ae0156aaf 100644 --- a/test/files/pos/t9370/sample_2.scala +++ b/test/files/pos/t9370/sample_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xplugin:/tmp-fake -Xplugin:. -Xplugin-require:timebomb -Ystop-after:parser +//> using options -Xplugin:/tmp-fake -Xplugin:. -Xplugin-require:timebomb -Ystop-after:parser // package sample diff --git a/test/files/pos/t9399.scala b/test/files/pos/t9399.scala index 8de485baa44..537717ed1df 100644 --- a/test/files/pos/t9399.scala +++ b/test/files/pos/t9399.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed abstract class TA sealed abstract class TB extends TA diff --git a/test/files/pos/t9411a.scala b/test/files/pos/t9411a.scala index 9679150d518..b28d5e17871 100644 --- a/test/files/pos/t9411a.scala +++ b/test/files/pos/t9411a.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object OhNoes { diff --git a/test/files/pos/t9411b.scala b/test/files/pos/t9411b.scala index d15423705b2..77714d038e1 100644 --- a/test/files/pos/t9411b.scala +++ b/test/files/pos/t9411b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object OhNoes { diff --git a/test/files/pos/t9490.scala b/test/files/pos/t9490.scala index e874724d092..a7975257ec4 100644 --- a/test/files/pos/t9490.scala +++ b/test/files/pos/t9490.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:inaccessible +//> using options -Werror -Xlint:inaccessible package ws { private[ws] trait Foo diff --git a/test/files/pos/t9630/t9630b.scala b/test/files/pos/t9630/t9630b.scala index fcd0f5ffc32..980615abf6a 100644 --- a/test/files/pos/t9630/t9630b.scala +++ b/test/files/pos/t9630/t9630b.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror class Test { def test(b: Base): Unit = b match { case Base_1(Some(_)) => diff --git a/test/files/pos/t9657.scala b/test/files/pos/t9657.scala index eb51a41b0f3..27aa7587a5e 100644 --- a/test/files/pos/t9657.scala +++ b/test/files/pos/t9657.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror sealed trait PowerSource case object Petrol extends PowerSource case object Pedal extends PowerSource diff --git a/test/files/pos/t9717.scala b/test/files/pos/t9717.scala index 50cb30f0b0a..fe3b72f9bb3 100644 --- a/test/files/pos/t9717.scala +++ b/test/files/pos/t9717.scala @@ -1,4 +1,4 @@ -// scalac: -Yno-predef +//> using options -Yno-predef import scala.Predef.implicitly diff --git a/test/files/pos/unchecked-a.scala b/test/files/pos/unchecked-a.scala index 8bcc299c1dc..d208f98df25 100644 --- a/test/files/pos/unchecked-a.scala +++ b/test/files/pos/unchecked-a.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait Y trait Z extends Y diff --git a/test/files/pos/unsafe.scala b/test/files/pos/unsafe.scala index 97d769791f7..cbdf7ed218a 100644 --- a/test/files/pos/unsafe.scala +++ b/test/files/pos/unsafe.scala @@ -1,5 +1,5 @@ -// scalac: --release:8 -Yrelease:sun.misc +//> using options --release:8 -Yrelease:sun.misc import sun.misc.Unsafe diff --git a/test/files/pos/value-class-override-no-spec.scala b/test/files/pos/value-class-override-no-spec.scala index a073503c4cd..842418aefcd 100644 --- a/test/files/pos/value-class-override-no-spec.scala +++ b/test/files/pos/value-class-override-no-spec.scala @@ -1,4 +1,4 @@ -// scalac: -no-specialization +//> using options -no-specialization // // There are two versions of this tests: one with and one without specialization. // The bug was only exposed *without* specialization. diff --git a/test/files/pos/varargs-future.scala b/test/files/pos/varargs-future.scala index 8b8c414b47b..2f60b213e44 100644 --- a/test/files/pos/varargs-future.scala +++ b/test/files/pos/varargs-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // class Test { diff --git a/test/files/pos/variant-placeholders-future.scala b/test/files/pos/variant-placeholders-future.scala index 383db8420f8..74dcc177c03 100644 --- a/test/files/pos/variant-placeholders-future.scala +++ b/test/files/pos/variant-placeholders-future.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:3 +//> using options -Xsource:3 // object Test { type `-_` = Int diff --git a/test/files/pos/virtpatmat_exhaust_unchecked.scala b/test/files/pos/virtpatmat_exhaust_unchecked.scala index 4e08038803e..fb0a5efb052 100644 --- a/test/files/pos/virtpatmat_exhaust_unchecked.scala +++ b/test/files/pos/virtpatmat_exhaust_unchecked.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait Option {} case class Choice(a: Option, b: Option) extends Option; diff --git a/test/files/pos/warn-unused-params-not-implicits.scala b/test/files/pos/warn-unused-params-not-implicits.scala index 4be45127b5e..f8fa369d2ea 100644 --- a/test/files/pos/warn-unused-params-not-implicits.scala +++ b/test/files/pos/warn-unused-params-not-implicits.scala @@ -1,4 +1,4 @@ -// scalac: -Ywarn-unused:params,-implicits -Xfatal-warnings +//> using options -Ywarn-unused:params,-implicits -Xfatal-warnings // trait InterFace { diff --git a/test/files/pos/xlint1.scala b/test/files/pos/xlint1.scala index 4d323c731cc..4ac7706ba3c 100644 --- a/test/files/pos/xlint1.scala +++ b/test/files/pos/xlint1.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Xfatal-warnings +//> using options -Xlint -Xfatal-warnings // package object foo { implicit class Bar[T](val x: T) extends AnyVal { diff --git a/test/files/pos/xml-attributes.scala b/test/files/pos/xml-attributes.scala index 715acf14a4d..dd50696fa01 100644 --- a/test/files/pos/xml-attributes.scala +++ b/test/files/pos/xml-attributes.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-comments.scala b/test/files/pos/xml-comments.scala index 0ce2633ee7b..a38dbe330ac 100644 --- a/test/files/pos/xml-comments.scala +++ b/test/files/pos/xml-comments.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-entityref.scala b/test/files/pos/xml-entityref.scala index 268cf860637..1240dd5d709 100644 --- a/test/files/pos/xml-entityref.scala +++ b/test/files/pos/xml-entityref.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-interpolation.scala b/test/files/pos/xml-interpolation.scala index 6230818a1ed..08a2081f304 100644 --- a/test/files/pos/xml-interpolation.scala +++ b/test/files/pos/xml-interpolation.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-match.scala b/test/files/pos/xml-match.scala index 12a10e36fa1..ddc984aca46 100644 --- a/test/files/pos/xml-match.scala +++ b/test/files/pos/xml-match.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { def bar(e: Elem) = e match { diff --git a/test/files/pos/xml-nodebuffer.scala b/test/files/pos/xml-nodebuffer.scala index a250636646a..0aa3d97ada5 100644 --- a/test/files/pos/xml-nodebuffer.scala +++ b/test/files/pos/xml-nodebuffer.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // import scala.xml.NodeBuffer diff --git a/test/files/pos/xml-ns-empty.scala b/test/files/pos/xml-ns-empty.scala index 4a3aa0c0231..c74aa70dc4a 100644 --- a/test/files/pos/xml-ns-empty.scala +++ b/test/files/pos/xml-ns-empty.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val n = diff --git a/test/files/pos/xml-ns-text.scala b/test/files/pos/xml-ns-text.scala index 8718e1ebf01..6eed98e900b 100644 --- a/test/files/pos/xml-ns-text.scala +++ b/test/files/pos/xml-ns-text.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val xml = diff --git a/test/files/pos/xml-ns.scala b/test/files/pos/xml-ns.scala index 71f90143cc4..092b06d894e 100644 --- a/test/files/pos/xml-ns.scala +++ b/test/files/pos/xml-ns.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-pcdata.scala b/test/files/pos/xml-pcdata.scala index d2e00e249a7..f657e2d4166 100644 --- a/test/files/pos/xml-pcdata.scala +++ b/test/files/pos/xml-pcdata.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-procinstr.scala b/test/files/pos/xml-procinstr.scala index 108ba8dc0c2..254de36885b 100644 --- a/test/files/pos/xml-procinstr.scala +++ b/test/files/pos/xml-procinstr.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val bar = "baz" diff --git a/test/files/pos/xml-quasiquote.scala b/test/files/pos/xml-quasiquote.scala index 203d997e3ed..624a03cd74e 100644 --- a/test/files/pos/xml-quasiquote.scala +++ b/test/files/pos/xml-quasiquote.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:typer +//> using options -Ystop-after:typer // import reflect.runtime.universe._ diff --git a/test/files/pos/xml-xmlns.scala b/test/files/pos/xml-xmlns.scala index 75d42f242b8..58c55228369 100644 --- a/test/files/pos/xml-xmlns.scala +++ b/test/files/pos/xml-xmlns.scala @@ -1,4 +1,4 @@ -// scalac: -Ystop-after:parser +//> using options -Ystop-after:parser // object foo { val html = diff --git a/test/files/pos/yimports-pkgobj/C_2.scala b/test/files/pos/yimports-pkgobj/C_2.scala index b0a418a6c69..7f8c8bdaa3e 100644 --- a/test/files/pos/yimports-pkgobj/C_2.scala +++ b/test/files/pos/yimports-pkgobj/C_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala,scala.Predef,hello.world +//> using options -Yimports:scala,scala.Predef,hello.world // import hello.world.{Numb => _, _} // no effect, world isPackage diff --git a/test/files/pos/yimports-pkgobj/minidef_1.scala b/test/files/pos/yimports-pkgobj/minidef_1.scala index 1681f4b6231..c0107f57d95 100644 --- a/test/files/pos/yimports-pkgobj/minidef_1.scala +++ b/test/files/pos/yimports-pkgobj/minidef_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yimports:scala +//> using options -Yimports:scala // package hello diff --git a/test/files/pos/z1730.scala b/test/files/pos/z1730.scala index e4dcb8727f7..35adc783468 100644 --- a/test/files/pos/z1730.scala +++ b/test/files/pos/z1730.scala @@ -1,4 +1,4 @@ -// scalac: -Ycheck:_ +//> using options -Ycheck:_ // // /scala/trac/z1730/a.scala // Wed May 23 07:41:25 PDT 2012 diff --git a/test/files/presentation/doc/doc.scala b/test/files/presentation/doc/doc.scala index 2051bad03eb..761bcd9c96d 100644 --- a/test/files/presentation/doc/doc.scala +++ b/test/files/presentation/doc/doc.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror import scala.reflect.internal.util.{ BatchSourceFile, SourceFile } import scala.tools.nsc.doc import scala.tools.nsc.doc.base._ diff --git a/test/files/run/abstype_implicits.scala b/test/files/run/abstype_implicits.scala index 7187e6c7de6..7283f6fb4ca 100644 --- a/test/files/run/abstype_implicits.scala +++ b/test/files/run/abstype_implicits.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // trait Functor[F[_]] diff --git a/test/files/run/applydynamic_sip.scala b/test/files/run/applydynamic_sip.scala index cb87dbe1fb7..cdc16ac7f5a 100644 --- a/test/files/run/applydynamic_sip.scala +++ b/test/files/run/applydynamic_sip.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false -language:dynamics +//> using options -Yrangepos:false -language:dynamics // object Test extends App { object stubUpdate { diff --git a/test/files/run/bcodeInlinerMixed/B_1.scala b/test/files/run/bcodeInlinerMixed/B_1.scala index bb6cf822096..c80ef4b6906 100644 --- a/test/files/run/bcodeInlinerMixed/B_1.scala +++ b/test/files/run/bcodeInlinerMixed/B_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // // Since 1.0.18, partest does mixed compilation only in two stages // 1. scalac *.scala *.java diff --git a/test/files/run/bcodeInlinerMixed/Test_2.scala b/test/files/run/bcodeInlinerMixed/Test_2.scala index fe0ee721a7b..91a005185c1 100644 --- a/test/files/run/bcodeInlinerMixed/Test_2.scala +++ b/test/files/run/bcodeInlinerMixed/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // import scala.tools.partest.BytecodeTest import scala.tools.testkit.ASMConverters diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala index b210946dbbd..1ab3ec0aae1 100644 --- a/test/files/run/bugs.scala +++ b/test/files/run/bugs.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // import annotation.unused diff --git a/test/files/run/checked.scala b/test/files/run/checked.scala index 4d814e9a48f..a7352e85983 100644 --- a/test/files/run/checked.scala +++ b/test/files/run/checked.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit -nowarn +//> using options -Xcheckinit -nowarn // /* Test checked initializers. Needs to be run with -checkinit */ diff --git a/test/files/run/checkinit.scala b/test/files/run/checkinit.scala index 2a37f2eef63..7d13bdb05bd 100644 --- a/test/files/run/checkinit.scala +++ b/test/files/run/checkinit.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // class C(val x: AnyRef, val y: AnyRef) class D(val x: AnyRef, val y: AnyRef) { diff --git a/test/files/run/ctor-order.scala b/test/files/run/ctor-order.scala index 904dca10707..158eb320238 100644 --- a/test/files/run/ctor-order.scala +++ b/test/files/run/ctor-order.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 /** Test that constructor operations are reordered correctly. */ class Outer { diff --git a/test/files/run/defaults-serizaliable-no-forwarders.scala b/test/files/run/defaults-serizaliable-no-forwarders.scala index f49f526daec..0c77afda79c 100644 --- a/test/files/run/defaults-serizaliable-no-forwarders.scala +++ b/test/files/run/defaults-serizaliable-no-forwarders.scala @@ -1,4 +1,4 @@ -// scalac: -Xmixin-force-forwarders:false +//> using options -Xmixin-force-forwarders:false import java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} diff --git a/test/files/run/delambdafy-dependent-on-param-subst.scala b/test/files/run/delambdafy-dependent-on-param-subst.scala index 68f3b44d0ec..77985f6dd2d 100644 --- a/test/files/run/delambdafy-dependent-on-param-subst.scala +++ b/test/files/run/delambdafy-dependent-on-param-subst.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method // trait M[-X] { def m(x: X): Boolean diff --git a/test/files/run/delay-bad.scala b/test/files/run/delay-bad.scala index fd32d9edf64..a743285791e 100644 --- a/test/files/run/delay-bad.scala +++ b/test/files/run/delay-bad.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 trait A extends DelayedInit { print("-A") diff --git a/test/files/run/delay-good.scala b/test/files/run/delay-good.scala index 5fe32194f41..5787db7b4b5 100644 --- a/test/files/run/delay-good.scala +++ b/test/files/run/delay-good.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 trait A { print("-A") diff --git a/test/files/run/deprecate-early-type-defs.scala b/test/files/run/deprecate-early-type-defs.scala index 8636e1d140f..cc0a32bf18a 100644 --- a/test/files/run/deprecate-early-type-defs.scala +++ b/test/files/run/deprecate-early-type-defs.scala @@ -1,3 +1,3 @@ -// scalac: -deprecation +//> using options -deprecation // object Test extends { type T = Int } with App diff --git a/test/files/run/disable-assertions.scala b/test/files/run/disable-assertions.scala index 3d77ce4fc92..e00efd00e71 100644 --- a/test/files/run/disable-assertions.scala +++ b/test/files/run/disable-assertions.scala @@ -1,4 +1,4 @@ -// scalac: -Xdisable-assertions +//> using options -Xdisable-assertions // object Elided { diff --git a/test/files/run/dotty-i11332b.scala b/test/files/run/dotty-i11332b.scala index 2627029541f..3257f66bae8 100644 --- a/test/files/run/dotty-i11332b.scala +++ b/test/files/run/dotty-i11332b.scala @@ -1,5 +1,5 @@ // javaVersion: 11+ -// scalac: -release:11 +//> using options -release:11 import java.lang.invoke._, MethodType.methodType diff --git a/test/files/run/dotty-t12348.scala b/test/files/run/dotty-t12348.scala index b655da3012d..0d3b6a0e277 100644 --- a/test/files/run/dotty-t12348.scala +++ b/test/files/run/dotty-t12348.scala @@ -1,5 +1,5 @@ // javaVersion: 11+ -// scalac: -release:11 +//> using options -release:11 import java.lang.invoke._ import scala.runtime.IntRef diff --git a/test/files/run/elidable-opt.scala b/test/files/run/elidable-opt.scala index 672a1ab4103..efed09bd5af 100644 --- a/test/files/run/elidable-opt.scala +++ b/test/files/run/elidable-opt.scala @@ -1,4 +1,4 @@ -// scalac: -Xelide-below 900 -deprecation -Xmaxwarns 0 +//> using options -Xelide-below 900 -deprecation -Xmaxwarns 0 // import annotation._ import elidable._ diff --git a/test/files/run/elidable.scala b/test/files/run/elidable.scala index 2a9edffd705..1daa6a8acff 100644 --- a/test/files/run/elidable.scala +++ b/test/files/run/elidable.scala @@ -1,4 +1,4 @@ -// scalac: -Xelide-below WARNING -deprecation +//> using options -Xelide-below WARNING -deprecation // import annotation._ import elidable._ diff --git a/test/files/run/hk-typevar-unification.scala b/test/files/run/hk-typevar-unification.scala index 2afd26c875f..81d6ab4e008 100644 --- a/test/files/run/hk-typevar-unification.scala +++ b/test/files/run/hk-typevar-unification.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // trait Forall[F[_]] { diff --git a/test/files/run/inline-stack-map-frames/A_1.scala b/test/files/run/inline-stack-map-frames/A_1.scala index 942b8591271..47783505139 100644 --- a/test/files/run/inline-stack-map-frames/A_1.scala +++ b/test/files/run/inline-stack-map-frames/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** class A { @noinline final def b: B = null @inline final def a: A = b diff --git a/test/files/run/inline-stack-map-frames/Test_2.scala b/test/files/run/inline-stack-map-frames/Test_2.scala index 3a904a6e940..13ca041f45a 100644 --- a/test/files/run/inline-stack-map-frames/Test_2.scala +++ b/test/files/run/inline-stack-map-frames/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** class C { def t(a: A): AnyRef = { // a.a is inlined, resulting in a.b, which has return type B diff --git a/test/files/run/inner-obj-auto.scala b/test/files/run/inner-obj-auto.scala index 3277d9f042c..bac5dedc894 100644 --- a/test/files/run/inner-obj-auto.scala +++ b/test/files/run/inner-obj-auto.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 /* ================================================================================ Automatically generated on 2011-05-11. Do Not Edit (unless you have to). diff --git a/test/files/run/interop_typetags_are_manifests.scala b/test/files/run/interop_typetags_are_manifests.scala index 3eb36e292c2..bc7f0840c37 100644 --- a/test/files/run/interop_typetags_are_manifests.scala +++ b/test/files/run/interop_typetags_are_manifests.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false // import scala.reflect.runtime.universe._ import scala.reflect.ClassTag diff --git a/test/files/run/is-valid-num.scala b/test/files/run/is-valid-num.scala index ef2388f8baa..5e0f17405c2 100644 --- a/test/files/run/is-valid-num.scala +++ b/test/files/run/is-valid-num.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint -Werror +//> using options -Xlint -Werror @annotation.nowarn("cat=deprecation&msg=isWhole") object Test { def x = BigInt("10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") diff --git a/test/files/run/iterableonce-deprecations.scala b/test/files/run/iterableonce-deprecations.scala index 35bce673824..5a8108368c2 100644 --- a/test/files/run/iterableonce-deprecations.scala +++ b/test/files/run/iterableonce-deprecations.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // // // diff --git a/test/files/run/lazy-locals.scala b/test/files/run/lazy-locals.scala index 11801fa96c1..de4fff901bb 100644 --- a/test/files/run/lazy-locals.scala +++ b/test/files/run/lazy-locals.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 object Test extends App { lazy val w = 10 diff --git a/test/files/run/literals.scala b/test/files/run/literals.scala index 358c330138f..06e6cacf4fb 100644 --- a/test/files/run/literals.scala +++ b/test/files/run/literals.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // //############################################################################ // Literals diff --git a/test/files/run/macro-expand-implicit-macro-is-view/Impls_1.scala b/test/files/run/macro-expand-implicit-macro-is-view/Impls_1.scala index 03e9ae0c5ff..85857b8a17c 100644 --- a/test/files/run/macro-expand-implicit-macro-is-view/Impls_1.scala +++ b/test/files/run/macro-expand-implicit-macro-is-view/Impls_1.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation import scala.reflect.macros.blackbox.Context object Impls { diff --git a/test/files/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala b/test/files/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala index 50bac1eedbf..db8742b67eb 100644 --- a/test/files/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala +++ b/test/files/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation object Macros { import scala.language.experimental.macros diff --git a/test/files/run/macro-openmacros/Impls_Macros_1.scala b/test/files/run/macro-openmacros/Impls_Macros_1.scala index 3ab0ed3720d..2e2069c8941 100644 --- a/test/files/run/macro-openmacros/Impls_Macros_1.scala +++ b/test/files/run/macro-openmacros/Impls_Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context import scala.util.Properties.isWin diff --git a/test/files/run/macro-openmacros/Test_2.scala b/test/files/run/macro-openmacros/Test_2.scala index 8a085961570..976a6c0011e 100644 --- a/test/files/run/macro-openmacros/Test_2.scala +++ b/test/files/run/macro-openmacros/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false object Test extends App { Macros.foo } diff --git a/test/files/run/macro-parse-position/Impls_Macros_1.scala b/test/files/run/macro-parse-position/Impls_Macros_1.scala index a17f0cdbfa6..34a0e6ad2d7 100644 --- a/test/files/run/macro-parse-position/Impls_Macros_1.scala +++ b/test/files/run/macro-parse-position/Impls_Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/run/macro-parse-position/Test_2.scala b/test/files/run/macro-parse-position/Test_2.scala index db0bac2510f..fcf7a1ef921 100644 --- a/test/files/run/macro-parse-position/Test_2.scala +++ b/test/files/run/macro-parse-position/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false object Test extends App { println(Macros.foo) } diff --git a/test/files/run/macro-rangepos-subpatterns/Macros_1.scala b/test/files/run/macro-rangepos-subpatterns/Macros_1.scala index 9f0b7a5dc53..842cda745c2 100644 --- a/test/files/run/macro-rangepos-subpatterns/Macros_1.scala +++ b/test/files/run/macro-rangepos-subpatterns/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos import scala.reflect.macros.whitebox.Context import language.experimental.macros diff --git a/test/files/run/macro-rangepos-subpatterns/Test_2.scala b/test/files/run/macro-rangepos-subpatterns/Test_2.scala index b2559e34edd..3b6246ad574 100644 --- a/test/files/run/macro-rangepos-subpatterns/Test_2.scala +++ b/test/files/run/macro-rangepos-subpatterns/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos object Test extends App { 42 match { case Extractor(a) => println(a) diff --git a/test/files/run/macro-settings/Test_2.scala b/test/files/run/macro-settings/Test_2.scala index 830b2533505..fc891cfc1dd 100644 --- a/test/files/run/macro-settings/Test_2.scala +++ b/test/files/run/macro-settings/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xmacro-settings:hello=1 +//> using options -Xmacro-settings:hello=1 object Test extends App { Macros.foo } diff --git a/test/files/run/macro-term-declared-in-anonymous/Macros_Test_2.scala b/test/files/run/macro-term-declared-in-anonymous/Macros_Test_2.scala index 785e92873a9..4bb5879d9a9 100644 --- a/test/files/run/macro-term-declared-in-anonymous/Macros_Test_2.scala +++ b/test/files/run/macro-term-declared-in-anonymous/Macros_Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -language:experimental.macros +//> using options -language:experimental.macros //import scala.language.experimental.macros import scala.language.reflectiveCalls diff --git a/test/files/run/macro-term-declared-in-refinement/Macros_Test_2.scala b/test/files/run/macro-term-declared-in-refinement/Macros_Test_2.scala index 738f7fc836d..a00059ec44d 100644 --- a/test/files/run/macro-term-declared-in-refinement/Macros_Test_2.scala +++ b/test/files/run/macro-term-declared-in-refinement/Macros_Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -language:experimental.macros +//> using options -language:experimental.macros //import scala.language.experimental.macros import scala.language.reflectiveCalls diff --git a/test/files/run/macro-vampire-false-warning/Macros_1.scala b/test/files/run/macro-vampire-false-warning/Macros_1.scala index a2e31ba61b3..169506de2e5 100644 --- a/test/files/run/macro-vampire-false-warning/Macros_1.scala +++ b/test/files/run/macro-vampire-false-warning/Macros_1.scala @@ -1,5 +1,5 @@ // As per https://meta.plasm.us/posts/2013/08/31/feeding-our-vampires/ -// scalac: -Werror +//> using options -Werror import scala.annotation.StaticAnnotation import scala.reflect.macros.whitebox.Context diff --git a/test/files/run/macro-vampire-false-warning/Test_2.scala b/test/files/run/macro-vampire-false-warning/Test_2.scala index 154cc430c85..a9dd906bbae 100644 --- a/test/files/run/macro-vampire-false-warning/Test_2.scala +++ b/test/files/run/macro-vampire-false-warning/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test extends App { val foo = mkObject("x" -> "2", "y" -> 3) println(foo.x) diff --git a/test/files/run/macroPlugins-enterStats.scala b/test/files/run/macroPlugins-enterStats.scala index de1701640cb..346f1fe01e8 100644 --- a/test/files/run/macroPlugins-enterStats.scala +++ b/test/files/run/macroPlugins-enterStats.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.tools.partest._ import scala.tools.nsc._ diff --git a/test/files/run/macroPlugins-isBlackbox/Test_3.scala b/test/files/run/macroPlugins-isBlackbox/Test_3.scala index 68eb05dc8eb..d3397c023dd 100644 --- a/test/files/run/macroPlugins-isBlackbox/Test_3.scala +++ b/test/files/run/macroPlugins-isBlackbox/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. object Test extends App { val x: Int = Macros.foo } diff --git a/test/files/run/macroPlugins-macroArgs/Test_3.scala b/test/files/run/macroPlugins-macroArgs/Test_3.scala index de0c68bb4c0..37440cdcccc 100644 --- a/test/files/run/macroPlugins-macroArgs/Test_3.scala +++ b/test/files/run/macroPlugins-macroArgs/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. object Test extends App { Macros.foo("1") Macros.foo("2") diff --git a/test/files/run/macroPlugins-macroExpand/Test_3.scala b/test/files/run/macroPlugins-macroExpand/Test_3.scala index 178b2f6b57b..5351095330c 100644 --- a/test/files/run/macroPlugins-macroExpand/Test_3.scala +++ b/test/files/run/macroPlugins-macroExpand/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. object Test extends App { Macros.foo1 Macros.foo2 diff --git a/test/files/run/macroPlugins-macroRuntime/Test_3.scala b/test/files/run/macroPlugins-macroRuntime/Test_3.scala index de0c68bb4c0..37440cdcccc 100644 --- a/test/files/run/macroPlugins-macroRuntime/Test_3.scala +++ b/test/files/run/macroPlugins-macroRuntime/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. +//> using options -Xplugin:. object Test extends App { Macros.foo("1") Macros.foo("2") diff --git a/test/files/run/macroPlugins-typedMacroBody/Macros_2.scala b/test/files/run/macroPlugins-typedMacroBody/Macros_2.scala index 7dafd5bfac9..d92c4a257cf 100644 --- a/test/files/run/macroPlugins-typedMacroBody/Macros_2.scala +++ b/test/files/run/macroPlugins-typedMacroBody/Macros_2.scala @@ -1,4 +1,4 @@ -// scalac: -Xplugin:. -Yrangepos:false +//> using options -Xplugin:. -Yrangepos:false import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context diff --git a/test/files/run/macroPlugins-typedMacroBody/Plugin_1.scala b/test/files/run/macroPlugins-typedMacroBody/Plugin_1.scala index b9445dd9d30..e9df77f4958 100644 --- a/test/files/run/macroPlugins-typedMacroBody/Plugin_1.scala +++ b/test/files/run/macroPlugins-typedMacroBody/Plugin_1.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false package typedMacroBody import scala.tools.nsc.Global diff --git a/test/files/run/macroPlugins-typedMacroBody/Test_3.scala b/test/files/run/macroPlugins-typedMacroBody/Test_3.scala index 360d9bbaa0f..7ababf77324 100644 --- a/test/files/run/macroPlugins-typedMacroBody/Test_3.scala +++ b/test/files/run/macroPlugins-typedMacroBody/Test_3.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false object Test extends App { Macros.foo1 Macros.foo2 diff --git a/test/files/run/manifests-undeprecated-in-2.10.0.scala b/test/files/run/manifests-undeprecated-in-2.10.0.scala index dc1b8373ed7..6cea26e304a 100644 --- a/test/files/run/manifests-undeprecated-in-2.10.0.scala +++ b/test/files/run/manifests-undeprecated-in-2.10.0.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // object Test extends App { def m1a: scala.reflect.Manifest[Int] = scala.reflect.Manifest.Int diff --git a/test/files/run/module-serialization-proxy-class-unload.scala b/test/files/run/module-serialization-proxy-class-unload.scala index f6405d33a2c..eb0d4daf8a4 100644 --- a/test/files/run/module-serialization-proxy-class-unload.scala +++ b/test/files/run/module-serialization-proxy-class-unload.scala @@ -1,4 +1,4 @@ -// scalac: -Ddummy=run-in-forked-process +//> using options -Ddummy=run-in-forked-process object Module { val data = new Array[Byte](32 * 1024 * 1024) } diff --git a/test/files/run/name-based-patmat.scala b/test/files/run/name-based-patmat.scala index b47c6f76d6f..50693595b24 100644 --- a/test/files/run/name-based-patmat.scala +++ b/test/files/run/name-based-patmat.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:stars-align +//> using options -Xlint:stars-align final class MiniSome[T](val get: T) extends AnyVal { def isEmpty = false } package p0 { diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index f2c3ac3e2f7..136d656f7a5 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint +//> using options -Xlint import scala.language.existentials object Test extends App { diff --git a/test/files/run/nonlocalreturn.scala b/test/files/run/nonlocalreturn.scala index 0bc4a8d29a8..3d6b18507ad 100644 --- a/test/files/run/nonlocalreturn.scala +++ b/test/files/run/nonlocalreturn.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:-nonlocal-return +//> using options -Xlint:-nonlocal-return object Test { def wrap[K](body: => K): K = body diff --git a/test/files/run/nothingTypeDce.scala b/test/files/run/nothingTypeDce.scala index e2753f2e9a4..e39efaf53b6 100644 --- a/test/files/run/nothingTypeDce.scala +++ b/test/files/run/nothingTypeDce.scala @@ -1,4 +1,4 @@ -// scalac: -opt:unreachable-code +//> using options -opt:unreachable-code // // See comment in BCodeBodyBuilder diff --git a/test/files/run/patmat-exprs.scala b/test/files/run/patmat-exprs.scala index 0f7b71803a3..faa2b2b75d7 100644 --- a/test/files/run/patmat-exprs.scala +++ b/test/files/run/patmat-exprs.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint +//> using options -Werror -Xlint // import scala.language.{ implicitConversions } diff --git a/test/files/run/patmat-mix-case-extractor.scala b/test/files/run/patmat-mix-case-extractor.scala index 55c101a3fab..fac2c0a6320 100644 --- a/test/files/run/patmat-mix-case-extractor.scala +++ b/test/files/run/patmat-mix-case-extractor.scala @@ -1,4 +1,4 @@ -// scalac: -Xmaxwarns 0 +//> using options -Xmaxwarns 0 trait CaseClass trait ProdCaseClass extends CaseClass { def x: Int } trait SeqCaseClass extends CaseClass { def xs: Seq[Int] } diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 145eb7b55c4..53addeb8ae2 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.language.{ postfixOps } diff --git a/test/files/run/primitive-sigs-2-new.scala b/test/files/run/primitive-sigs-2-new.scala index d76707cb00e..00718a318ff 100644 --- a/test/files/run/primitive-sigs-2-new.scala +++ b/test/files/run/primitive-sigs-2-new.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline // import scala.language.{ postfixOps } diff --git a/test/files/run/primitive-sigs-2-old.scala b/test/files/run/primitive-sigs-2-old.scala index faebedb2588..a3145e81fd2 100644 --- a/test/files/run/primitive-sigs-2-old.scala +++ b/test/files/run/primitive-sigs-2-old.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline // import scala.language.{ postfixOps } diff --git a/test/files/run/pure-warning-post-macro/test_2.scala b/test/files/run/pure-warning-post-macro/test_2.scala index 328a0038195..4b4934c0839 100644 --- a/test/files/run/pure-warning-post-macro/test_2.scala +++ b/test/files/run/pure-warning-post-macro/test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { def main(args: Array[String]): Unit = { // We don't want a "pure expression discarded" warning here as the macro will diff --git a/test/files/run/reflection-valueclasses-magic.scala b/test/files/run/reflection-valueclasses-magic.scala index bc461f62935..07cd824283e 100644 --- a/test/files/run/reflection-valueclasses-magic.scala +++ b/test/files/run/reflection-valueclasses-magic.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.reflect.runtime.universe._ import scala.reflect.runtime.universe.definitions._ diff --git a/test/files/run/sequenceComparisons.scala b/test/files/run/sequenceComparisons.scala index 7304745ea24..183b7257412 100644 --- a/test/files/run/sequenceComparisons.scala +++ b/test/files/run/sequenceComparisons.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation import scala.collection.{ mutable, immutable } import collection.Seq diff --git a/test/files/run/sip23-rangepos.scala b/test/files/run/sip23-rangepos.scala index 69cf08b3c6d..cf37ec0d019 100644 --- a/test/files/run/sip23-rangepos.scala +++ b/test/files/run/sip23-rangepos.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // object Test extends App { val foo: "foo" = "foo" diff --git a/test/files/run/string-switch.scala b/test/files/run/string-switch.scala index 6a1522b416d..fb1d5f9ffa7 100644 --- a/test/files/run/string-switch.scala +++ b/test/files/run/string-switch.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import annotation.switch import util.Try diff --git a/test/files/run/synchronized.scala b/test/files/run/synchronized.scala index 8cd024f6075..a8e0fb5375c 100644 --- a/test/files/run/synchronized.scala +++ b/test/files/run/synchronized.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt:none +//> using options -opt:inline:** -Wopt:none import java.lang.Thread.holdsLock import scala.collection.mutable.StringBuilder diff --git a/test/files/run/t10283.scala b/test/files/run/t10283.scala index a206aa01097..8a432fdec20 100644 --- a/test/files/run/t10283.scala +++ b/test/files/run/t10283.scala @@ -1,4 +1,4 @@ -// scalac: -Xsource:2.13 +//> using options -Xsource:2.13 // trait OpacityTypes { type T diff --git a/test/files/run/t10439.scala b/test/files/run/t10439.scala index 6b2f077cbdd..a96a79095a0 100644 --- a/test/files/run/t10439.scala +++ b/test/files/run/t10439.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // object Test { private var s: String = _ diff --git a/test/files/run/t10539.scala b/test/files/run/t10539.scala index 00a0abe6b5c..fe120eee956 100644 --- a/test/files/run/t10539.scala +++ b/test/files/run/t10539.scala @@ -1,4 +1,4 @@ -// scalac: -Xdev +//> using options -Xdev // class A { def ==(a: A) = "LOL" diff --git a/test/files/run/t10692.scala b/test/files/run/t10692.scala index 23f2a8f1b77..de41e5d562d 100644 --- a/test/files/run/t10692.scala +++ b/test/files/run/t10692.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // trait T { private var s: String = _ diff --git a/test/files/run/t11042.scala b/test/files/run/t11042.scala index c0acbcbed32..cdb7fca04e7 100644 --- a/test/files/run/t11042.scala +++ b/test/files/run/t11042.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation object Test extends App { def f(xs: Array[Int]): Boolean = xs.isInstanceOf[scala.collection.immutable.Seq[_]] def g(xs: Int*): Boolean = xs.isInstanceOf[scala.collection.immutable.Seq[_]] diff --git a/test/files/run/t11255/A_1.scala b/test/files/run/t11255/A_1.scala index ad879d0c16f..2c7eef1fa0d 100644 --- a/test/files/run/t11255/A_1.scala +++ b/test/files/run/t11255/A_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** class K(val f: Int => Int) extends Serializable class A { @inline final def f = new K(x => x + 1) diff --git a/test/files/run/t11255/Test_2.scala b/test/files/run/t11255/Test_2.scala index 3a257086c6a..eec0b877a67 100644 --- a/test/files/run/t11255/Test_2.scala +++ b/test/files/run/t11255/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** object Test { def serializeDeserialize(obj: Object): Object = { import java.io._ diff --git a/test/files/run/t11534c.scala b/test/files/run/t11534c.scala index a1fbaf0d72e..1563a6dfac4 100644 --- a/test/files/run/t11534c.scala +++ b/test/files/run/t11534c.scala @@ -1,4 +1,4 @@ -// scalac: -unchecked +//> using options -unchecked import scala.util.Try object Test { diff --git a/test/files/run/t1167.scala b/test/files/run/t1167.scala index 13d715e3f3f..d1cb83be67f 100644 --- a/test/files/run/t1167.scala +++ b/test/files/run/t1167.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline /** Tests for compatible InnerClasses attribute between trait and * impl classes, as well as anonymous classes. */ diff --git a/test/files/run/t11938.scala b/test/files/run/t11938.scala index e52cfd50e54..cf48c82fdf1 100644 --- a/test/files/run/t11938.scala +++ b/test/files/run/t11938.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Wunused +//> using options -Werror -Wunused object Test extends App { for (x @ 1 <- List(1.0)) { assert(x.isInstanceOf[Double]) diff --git a/test/files/run/t12348.scala b/test/files/run/t12348.scala index eddac062695..3e06c20dc9c 100644 --- a/test/files/run/t12348.scala +++ b/test/files/run/t12348.scala @@ -1,5 +1,5 @@ // javaVersion: 11+ -// scalac: -release:11 +//> using options -release:11 // this a sequel to t7965. that one only tests MethodHandle. JDK 11 added // signature polymorphic methods to VarHandle, so let's test that too diff --git a/test/files/run/t12799/Test_2.scala b/test/files/run/t12799/Test_2.scala index 030b48e3506..8463af1e831 100644 --- a/test/files/run/t12799/Test_2.scala +++ b/test/files/run/t12799/Test_2.scala @@ -1,5 +1,5 @@ -// scalac: -Xlint +//> using options -Xlint import example._ diff --git a/test/files/run/t1980.scala b/test/files/run/t1980.scala index 62375005b77..228d7c92b08 100644 --- a/test/files/run/t1980.scala +++ b/test/files/run/t1980.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // class LazyList[+A](expr: => LazyList.Evaluated[A]) { def #:: [B >: A](elem: => B): LazyList[B] = new LazyList(Some((elem, this))) diff --git a/test/files/run/t1987.scala b/test/files/run/t1987.scala index e826911b938..e3531e579a8 100644 --- a/test/files/run/t1987.scala +++ b/test/files/run/t1987.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // a.scala // Fri Jan 13 11:31:47 PST 2012 diff --git a/test/files/run/t2106.scala b/test/files/run/t2106.scala index 4699ef66279..43d660acde2 100644 --- a/test/files/run/t2106.scala +++ b/test/files/run/t2106.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt // class A extends Cloneable { @inline final def foo = clone() diff --git a/test/files/run/t2318.scala b/test/files/run/t2318.scala index c7592037842..f62d7562723 100644 --- a/test/files/run/t2318.scala +++ b/test/files/run/t2318.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation // java: -Ddummy=fresh_jvm_needed_to_test_security_manager // filter: WARNING.* // for now, ignore warnings due to reflective invocation diff --git a/test/files/run/t3038b.scala b/test/files/run/t3038b.scala index 6f1c055837a..16a7ef86228 100644 --- a/test/files/run/t3038b.scala +++ b/test/files/run/t3038b.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // class A { val a1 = 1 diff --git a/test/files/run/t3038d.scala b/test/files/run/t3038d.scala index fe2820d2542..ac73e0b6f53 100644 --- a/test/files/run/t3038d.scala +++ b/test/files/run/t3038d.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // trait Foo { @transient protected var load = 1 diff --git a/test/files/run/t3194.scala b/test/files/run/t3194.scala index c6e0cd53f85..982a9f40c1d 100644 --- a/test/files/run/t3194.scala +++ b/test/files/run/t3194.scala @@ -1,4 +1,4 @@ -// scalac: -language:_ +//> using options -language:_ import scala.util.chaining._ class A(var x: Int) diff --git a/test/files/run/t3220-213.scala b/test/files/run/t3220-213.scala index a33d94ffefc..ba8380e8df0 100644 --- a/test/files/run/t3220-213.scala +++ b/test/files/run/t3220-213.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // object Literals { diff --git a/test/files/run/t3235-minimal.scala b/test/files/run/t3235-minimal.scala index 9a95dad59d1..5154a126da6 100644 --- a/test/files/run/t3235-minimal.scala +++ b/test/files/run/t3235-minimal.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // object Test { def main(args: Array[String]): Unit = { diff --git a/test/files/run/t3326.scala b/test/files/run/t3326.scala index 2c9b3f40ac7..cbed2a4c485 100644 --- a/test/files/run/t3326.scala +++ b/test/files/run/t3326.scala @@ -1,4 +1,4 @@ -// scalac: -Wopt +//> using options -Wopt import scala.math.Ordering /** The heart of the problem - we want to retain the ordering when diff --git a/test/files/run/t3509.scala b/test/files/run/t3509.scala index 1d89a838c58..dbd6a17b022 100644 --- a/test/files/run/t3509.scala +++ b/test/files/run/t3509.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { diff --git a/test/files/run/t3569.scala b/test/files/run/t3569.scala index b393e9dcf6a..4e77df08e49 100644 --- a/test/files/run/t3569.scala +++ b/test/files/run/t3569.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { final val bippy1 = 1 diff --git a/test/files/run/t3895.scala b/test/files/run/t3895.scala index d19100dfd0b..b353aa7d24a 100644 --- a/test/files/run/t3895.scala +++ b/test/files/run/t3895.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // class C extends A{ diff --git a/test/files/run/t3897/a_1.scala b/test/files/run/t3897/a_1.scala index ceabeb45042..9c31837bcef 100644 --- a/test/files/run/t3897/a_1.scala +++ b/test/files/run/t3897/a_1.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline class One { private val messages = new collection.mutable.ListBuffer[String] List("a") foreach { messages += _ } diff --git a/test/files/run/t3897/a_2.scala b/test/files/run/t3897/a_2.scala index d9ef2e353db..59477c57405 100644 --- a/test/files/run/t3897/a_2.scala +++ b/test/files/run/t3897/a_2.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:inline +//> using options -Ydelambdafy:inline object Test { def f1(clazz: Class[_]) = ( clazz.getDeclaredFields.toList diff --git a/test/files/run/t4072.scala b/test/files/run/t4072.scala index 9cc12e13042..05cf8574891 100644 --- a/test/files/run/t4072.scala +++ b/test/files/run/t4072.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // import scala.tools.nsc._ diff --git a/test/files/run/t4225d.scala b/test/files/run/t4225d.scala index 4b506b91141..a6e3fd9e6c0 100644 --- a/test/files/run/t4225d.scala +++ b/test/files/run/t4225d.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // import scala.language.implicitConversions diff --git a/test/files/run/t4225e.scala b/test/files/run/t4225e.scala index 0b1455c1a0e..e85e5c5e90c 100644 --- a/test/files/run/t4225e.scala +++ b/test/files/run/t4225e.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // import scala.language.implicitConversions diff --git a/test/files/run/t4285.scala b/test/files/run/t4285.scala index 3a369235510..3b8464c5a41 100644 --- a/test/files/run/t4285.scala +++ b/test/files/run/t4285.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // import scala.tools.partest.ReplTest object Test extends ReplTest { diff --git a/test/files/run/t4317/S_1.scala b/test/files/run/t4317/S_1.scala index af40b4f6f4e..93cf4c053c8 100644 --- a/test/files/run/t4317/S_1.scala +++ b/test/files/run/t4317/S_1.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror import language.existentials object S_1 { diff --git a/test/files/run/t4317/S_3.scala b/test/files/run/t4317/S_3.scala index 8ddf3068e07..065ebaceb3f 100644 --- a/test/files/run/t4317/S_3.scala +++ b/test/files/run/t4317/S_3.scala @@ -1,4 +1,4 @@ -// scalac: -Werror +//> using options -Werror object Test { def main(args: Array[String]): Unit = { val j = new J_2() diff --git a/test/files/run/t4536.scala b/test/files/run/t4536.scala index 926037695f7..87b349e331b 100644 --- a/test/files/run/t4536.scala +++ b/test/files/run/t4536.scala @@ -1,4 +1,4 @@ -// scalac: -language:dynamics +//> using options -language:dynamics // diff --git a/test/files/run/t4742.scala b/test/files/run/t4742.scala index da407ace100..258130df2da 100644 --- a/test/files/run/t4742.scala +++ b/test/files/run/t4742.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // trait T { val x: Int = 0 } object O extends T { override final val x = 1 } diff --git a/test/files/run/t4935.scala b/test/files/run/t4935.scala index 0b3a9a72ad5..c18517cb62b 100644 --- a/test/files/run/t4935.scala +++ b/test/files/run/t4935.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test extends App { for (i <- 0 to 1) { diff --git a/test/files/run/t5040.scala b/test/files/run/t5040.scala index 5ea3386f238..507dfedd091 100644 --- a/test/files/run/t5040.scala +++ b/test/files/run/t5040.scala @@ -1,4 +1,4 @@ -// scalac: -language:dynamics +//> using options -language:dynamics // abstract class Prova2 extends Dynamic { def applyDynamic(m: String)(): Unit diff --git a/test/files/run/t5568.scala b/test/files/run/t5568.scala index 040db3b1297..3c086cde9ee 100644 --- a/test/files/run/t5568.scala +++ b/test/files/run/t5568.scala @@ -1,4 +1,4 @@ -// scalac: -nowarn +//> using options -nowarn // object Test { def main(args: Array[String]): Unit = { diff --git a/test/files/run/t5648.scala b/test/files/run/t5648.scala index 1c3cd6f2a17..e87595b8d79 100644 --- a/test/files/run/t5648.scala +++ b/test/files/run/t5648.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // case class C(val s: Int*) diff --git a/test/files/run/t5704.scala b/test/files/run/t5704.scala index 6297fa97bac..48fccf851a3 100644 --- a/test/files/run/t5704.scala +++ b/test/files/run/t5704.scala @@ -1,4 +1,4 @@ -// scalac: -language:experimental.macros +//> using options -language:experimental.macros // import scala.reflect.runtime.universe._ import scala.reflect.runtime.{universe => ru} diff --git a/test/files/run/t5830.scala b/test/files/run/t5830.scala index 296651f439d..2d5523bf449 100644 --- a/test/files/run/t5830.scala +++ b/test/files/run/t5830.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import scala.annotation.switch diff --git a/test/files/run/t5857.scala b/test/files/run/t5857.scala index 4812e494529..6ea10db6362 100644 --- a/test/files/run/t5857.scala +++ b/test/files/run/t5857.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.math.Ordering.Double.IeeeOrdering diff --git a/test/files/run/t5903a/Macros_1.scala b/test/files/run/t5903a/Macros_1.scala index 0b1380af89f..2e66800e963 100644 --- a/test/files/run/t5903a/Macros_1.scala +++ b/test/files/run/t5903a/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls import scala.reflect.macros.whitebox.Context import language.experimental.macros diff --git a/test/files/run/t5903a/Test_2.scala b/test/files/run/t5903a/Test_2.scala index 74e8c666055..5fc374c0f39 100644 --- a/test/files/run/t5903a/Test_2.scala +++ b/test/files/run/t5903a/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls object Test extends App { import NewQuasiquotes._ SomeTree match { diff --git a/test/files/run/t5903c/Macros_1.scala b/test/files/run/t5903c/Macros_1.scala index 41b77eba18e..474fcb2b723 100644 --- a/test/files/run/t5903c/Macros_1.scala +++ b/test/files/run/t5903c/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls import scala.reflect.macros.whitebox.Context import language.experimental.macros diff --git a/test/files/run/t5903c/Test_2.scala b/test/files/run/t5903c/Test_2.scala index 5a1e7c54e74..db705fcf352 100644 --- a/test/files/run/t5903c/Test_2.scala +++ b/test/files/run/t5903c/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls object Test extends App { import Interpolation._ 2 match { diff --git a/test/files/run/t5903d/Macros_1.scala b/test/files/run/t5903d/Macros_1.scala index f0fd4801296..feedf6eccd6 100644 --- a/test/files/run/t5903d/Macros_1.scala +++ b/test/files/run/t5903d/Macros_1.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls import scala.reflect.macros.whitebox.Context import language.experimental.macros diff --git a/test/files/run/t5903d/Test_2.scala b/test/files/run/t5903d/Test_2.scala index 1871197c166..a64890fd8b5 100644 --- a/test/files/run/t5903d/Test_2.scala +++ b/test/files/run/t5903d/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -Vreflective-calls +//> using options -Vreflective-calls object Test extends App { import Interpolation._ 42 match { diff --git a/test/files/run/t5905-features.scala b/test/files/run/t5905-features.scala index d411f7d9214..a00d988a3a0 100644 --- a/test/files/run/t5905-features.scala +++ b/test/files/run/t5905-features.scala @@ -1,4 +1,4 @@ -// scalac: -nowarn +//> using options -nowarn // import tools.partest.DirectTest diff --git a/test/files/run/t6102.scala b/test/files/run/t6102.scala index edcdf439b85..b5dbb970b22 100644 --- a/test/files/run/t6102.scala +++ b/test/files/run/t6102.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Werror +//> using options -opt:inline:** -Werror // // scala/bug#6102 Wrong bytecode in lazyval + no-op finally clause diff --git a/test/files/run/t6146b.scala b/test/files/run/t6146b.scala index 62e9ebf5012..c28754be503 100644 --- a/test/files/run/t6146b.scala +++ b/test/files/run/t6146b.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation // import scala.tools.partest.ReplTest diff --git a/test/files/run/t6188.scala b/test/files/run/t6188.scala index 26dde6ea1d5..c1529b26cbc 100644 --- a/test/files/run/t6188.scala +++ b/test/files/run/t6188.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // // scala/bug#6188 Optimizer incorrectly removes method invocations containing throw expressions diff --git a/test/files/run/t6327.scala b/test/files/run/t6327.scala index 7ebba247b87..698cc5fdf66 100644 --- a/test/files/run/t6327.scala +++ b/test/files/run/t6327.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false // import language._ diff --git a/test/files/run/t6541.scala b/test/files/run/t6541.scala index 4f193e3a15c..c422e91b255 100644 --- a/test/files/run/t6541.scala +++ b/test/files/run/t6541.scala @@ -1,4 +1,4 @@ -// scalac: -feature -Werror +//> using options -feature -Werror // class A class B[T](x: T) diff --git a/test/files/run/t657.scala b/test/files/run/t657.scala index 882c9bf3fb7..9c30c12adde 100644 --- a/test/files/run/t657.scala +++ b/test/files/run/t657.scala @@ -1,4 +1,4 @@ -// scalac: -Werror -Xlint:deprecation +//> using options -Werror -Xlint:deprecation // import scala.language.{ implicitConversions } diff --git a/test/files/run/t6663.scala b/test/files/run/t6663.scala index e93dca2afdb..a30a45c7a06 100644 --- a/test/files/run/t6663.scala +++ b/test/files/run/t6663.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false +//> using options -Yrangepos:false // import language.dynamics diff --git a/test/files/run/t6677b.scala b/test/files/run/t6677b.scala index 764f5ac4a0c..a68623ff3bd 100644 --- a/test/files/run/t6677b.scala +++ b/test/files/run/t6677b.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation // trait U { diff --git a/test/files/run/t6714.scala b/test/files/run/t6714.scala index f778ecaf17f..18f1dabc3c2 100644 --- a/test/files/run/t6714.scala +++ b/test/files/run/t6714.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos +//> using options -Yrangepos // case class A(a: Int, index: Int) { diff --git a/test/files/run/t6731.scala b/test/files/run/t6731.scala index 8ea4962558d..8fc224a7513 100644 --- a/test/files/run/t6731.scala +++ b/test/files/run/t6731.scala @@ -1,4 +1,4 @@ -// scalac: -Yrangepos:false -deprecation +//> using options -Yrangepos:false -deprecation // import scala.language.dynamics import scala.reflect.{ ClassTag, classTag } diff --git a/test/files/run/t7341.scala b/test/files/run/t7341.scala index a03e8e85346..d0b85377c25 100644 --- a/test/files/run/t7341.scala +++ b/test/files/run/t7341.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // object Obj { private var cache: Any = () diff --git a/test/files/run/t744.scala b/test/files/run/t744.scala index e5b4407284a..549362c92dc 100644 --- a/test/files/run/t744.scala +++ b/test/files/run/t744.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:deprecation +//> using options -Xlint:deprecation // trait Linked { diff --git a/test/files/run/t7448.scala b/test/files/run/t7448.scala index 5bf74ee85a7..ae814341338 100644 --- a/test/files/run/t7448.scala +++ b/test/files/run/t7448.scala @@ -1,4 +1,4 @@ -// scalac: -nowarn +//> using options -nowarn import util.chaining._ object Test { diff --git a/test/files/run/t7459b-optimize.scala b/test/files/run/t7459b-optimize.scala index ececda96b49..225723b1dc1 100644 --- a/test/files/run/t7459b-optimize.scala +++ b/test/files/run/t7459b-optimize.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // class LM { class Node[B1] diff --git a/test/files/run/t7582/InlineHolder_2.scala b/test/files/run/t7582/InlineHolder_2.scala index 82eb737299e..7fc43890bdd 100644 --- a/test/files/run/t7582/InlineHolder_2.scala +++ b/test/files/run/t7582/InlineHolder_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt package p1 { object InlineHolder { @inline def inlinable = (p1.PackageProtectedJava_1.protectedMethod(): @noinline) + 1 diff --git a/test/files/run/t7582b/InlineHolder_2.scala b/test/files/run/t7582b/InlineHolder_2.scala index 82eb737299e..7fc43890bdd 100644 --- a/test/files/run/t7582b/InlineHolder_2.scala +++ b/test/files/run/t7582b/InlineHolder_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** -Wopt +//> using options -opt:inline:** -Wopt package p1 { object InlineHolder { @inline def inlinable = (p1.PackageProtectedJava_1.protectedMethod(): @noinline) + 1 diff --git a/test/files/run/t7584.scala b/test/files/run/t7584.scala index a830cbf735b..9b7bf8f4abe 100644 --- a/test/files/run/t7584.scala +++ b/test/files/run/t7584.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // // Test case added to show the behaviour of functions with // by-name parameters. The evaluation behaviour was already correct. diff --git a/test/files/run/t7974/Test.scala b/test/files/run/t7974/Test.scala index 879313f45fc..675b9907bf1 100644 --- a/test/files/run/t7974/Test.scala +++ b/test/files/run/t7974/Test.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit:false +//> using options -Xcheckinit:false import java.io.PrintWriter import scala.tools.partest.BytecodeTest diff --git a/test/files/run/t8017/value-class-lambda.scala b/test/files/run/t8017/value-class-lambda.scala index 212a772c221..a3b34b1ba93 100644 --- a/test/files/run/t8017/value-class-lambda.scala +++ b/test/files/run/t8017/value-class-lambda.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method object Test { def testC: Unit = { val f1 = (c: C) => c.value diff --git a/test/files/run/t8570.scala b/test/files/run/t8570.scala index a7d6c449bcb..9b9a1e3d0fe 100644 --- a/test/files/run/t8570.scala +++ b/test/files/run/t8570.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // trait Trait40_1 { val value37_2 = () diff --git a/test/files/run/t8570a.scala b/test/files/run/t8570a.scala index cc0ea401245..1b78ec0fcc0 100644 --- a/test/files/run/t8570a.scala +++ b/test/files/run/t8570a.scala @@ -1,4 +1,4 @@ -// scalac: -Xcheckinit +//> using options -Xcheckinit // trait Trait40_1 { val value37_2 = () diff --git a/test/files/run/t8601-closure-elim.scala b/test/files/run/t8601-closure-elim.scala index d65a0876b11..1f7f445f709 100644 --- a/test/files/run/t8601-closure-elim.scala +++ b/test/files/run/t8601-closure-elim.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method -opt:inline:** +//> using options -Ydelambdafy:method -opt:inline:** // import scala.tools.partest.BytecodeTest import scala.tools.testkit.ASMConverters.instructionsFromMethod diff --git a/test/files/run/t8601.scala b/test/files/run/t8601.scala index 9858f622009..1fc36c2f125 100644 --- a/test/files/run/t8601.scala +++ b/test/files/run/t8601.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { def idiv(x: Int): Unit = x / 0 diff --git a/test/files/run/t8601b.scala b/test/files/run/t8601b.scala index d8daece4e25..8f0312a3432 100644 --- a/test/files/run/t8601b.scala +++ b/test/files/run/t8601b.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { def len(x: Array[String]): Unit = x.length diff --git a/test/files/run/t8601c.scala b/test/files/run/t8601c.scala index 403e506ddf9..55566a8e8ff 100644 --- a/test/files/run/t8601c.scala +++ b/test/files/run/t8601c.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { def loadField(x: scala.runtime.IntRef): Unit = x.elem diff --git a/test/files/run/t8601d.scala b/test/files/run/t8601d.scala index c567abcd434..46d35e60152 100644 --- a/test/files/run/t8601d.scala +++ b/test/files/run/t8601d.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Test { def monitor(x: AnyRef): Unit = {x.synchronized(()); ()} diff --git a/test/files/run/t8601e/Test.scala b/test/files/run/t8601e/Test.scala index 44a8eb18b75..99667f24b8f 100644 --- a/test/files/run/t8601e/Test.scala +++ b/test/files/run/t8601e/Test.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** class C { def foo: Unit = {StaticInit.fld} } diff --git a/test/files/run/t8610.scala b/test/files/run/t8610.scala index 932b7bab5dd..0bcca528f2d 100644 --- a/test/files/run/t8610.scala +++ b/test/files/run/t8610.scala @@ -1,4 +1,4 @@ -// scalac: -Xlint:adapted-args +//> using options -Xlint:adapted-args // // flags don't warn on u diff --git a/test/files/run/t8611a.scala b/test/files/run/t8611a.scala index b4895bbaf85..69ae2ba167b 100644 --- a/test/files/run/t8611a.scala +++ b/test/files/run/t8611a.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait K trait L diff --git a/test/files/run/t8611b.scala b/test/files/run/t8611b.scala index 3ababcdc906..fd091be8a1d 100644 --- a/test/files/run/t8611b.scala +++ b/test/files/run/t8611b.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // sealed trait KrafsDescription diff --git a/test/files/run/t8611c.scala b/test/files/run/t8611c.scala index c216d30c4a3..44f6708a96c 100644 --- a/test/files/run/t8611c.scala +++ b/test/files/run/t8611c.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // trait K trait L diff --git a/test/files/run/t8888.scala b/test/files/run/t8888.scala index 1ac421625ff..301af0e2680 100644 --- a/test/files/run/t8888.scala +++ b/test/files/run/t8888.scala @@ -1,4 +1,4 @@ -// scalac: -Ydelambdafy:method +//> using options -Ydelambdafy:method // class C { final def resume: Any = (this: Any) match { diff --git a/test/files/run/t9003.scala b/test/files/run/t9003.scala index b5dc2102747..f84137c75b5 100644 --- a/test/files/run/t9003.scala +++ b/test/files/run/t9003.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** // object Single { var i = 0 diff --git a/test/files/run/t9029.scala b/test/files/run/t9029.scala index 52dbc58378e..538b9b14c81 100644 --- a/test/files/run/t9029.scala +++ b/test/files/run/t9029.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // class Y(val _2: Int, val _1: String) diff --git a/test/files/run/t9403/C_1.scala b/test/files/run/t9403/C_1.scala index e3b5c6d75b2..3ca2955ffa9 100644 --- a/test/files/run/t9403/C_1.scala +++ b/test/files/run/t9403/C_1.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** package p class C { @inline final def f(x: Int): Long = 10L / (if (x < 0) -2 else 2) diff --git a/test/files/run/t9403/Test_2.scala b/test/files/run/t9403/Test_2.scala index be56f42073b..54bc0a805d9 100644 --- a/test/files/run/t9403/Test_2.scala +++ b/test/files/run/t9403/Test_2.scala @@ -1,4 +1,4 @@ -// scalac: -opt:inline:** +//> using options -opt:inline:** import p.C import scala.tools.asm.Opcodes import scala.tools.partest.BytecodeTest diff --git a/test/files/run/t9656.scala b/test/files/run/t9656.scala index 3b97bc72a3c..28a8cc05638 100644 --- a/test/files/run/t9656.scala +++ b/test/files/run/t9656.scala @@ -1,4 +1,4 @@ -// scalac: -deprecation +//> using options -deprecation // import scala.math.BigDecimal diff --git a/test/files/run/virtpatmat_extends_product.scala b/test/files/run/virtpatmat_extends_product.scala index de1a4970483..95fac894179 100644 --- a/test/files/run/virtpatmat_extends_product.scala +++ b/test/files/run/virtpatmat_extends_product.scala @@ -1,4 +1,4 @@ -// scalac: +//> using options // object Test extends App { case class AnnotationInfo(a: String, b: Int) extends Product2[String, Int] { diff --git a/test/files/run/virtpatmat_nested_lists.scala b/test/files/run/virtpatmat_nested_lists.scala index 58f36b64230..73223d3b7b0 100644 --- a/test/files/run/virtpatmat_nested_lists.scala +++ b/test/files/run/virtpatmat_nested_lists.scala @@ -1,4 +1,4 @@ -// scalac: -Ypatmat-exhaust-depth off +//> using options -Ypatmat-exhaust-depth off object Test extends App { List(List(1), List(2)) match { case x :: (y :: Nil) :: Nil => println(y) } } diff --git a/test/files/run/virtpatmat_opt_sharing.scala b/test/files/run/virtpatmat_opt_sharing.scala index 988f963c8ec..90afce4071d 100644 --- a/test/files/run/virtpatmat_opt_sharing.scala +++ b/test/files/run/virtpatmat_opt_sharing.scala @@ -1,4 +1,4 @@ -// scalac: -Ypatmat-exhaust-depth off +//> using options -Ypatmat-exhaust-depth off object Test extends App { virtMatch() def virtMatch() = { diff --git a/test/files/run/virtpatmat_typetag.scala b/test/files/run/virtpatmat_typetag.scala index 0cf409fd335..7af79a703ff 100644 --- a/test/files/run/virtpatmat_typetag.scala +++ b/test/files/run/virtpatmat_typetag.scala @@ -1,4 +1,4 @@ -// scalac: -Xfatal-warnings +//> using options -Xfatal-warnings // import reflect.{ClassTag, classTag} diff --git a/test/files/run/wacky-value-classes.scala b/test/files/run/wacky-value-classes.scala index c62c70873aa..74d5b3e5258 100644 --- a/test/files/run/wacky-value-classes.scala +++ b/test/files/run/wacky-value-classes.scala @@ -1,4 +1,4 @@ -// scalac: -Xverify +//> using options -Xverify // // scala/bug#10361 final class AnyValNothing(val self: Nothing) extends AnyVal