aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 13:11:09 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 13:11:09 +0200
commit28bb27672bf7e4fb2bb80df48ee8c70628de19c4 (patch)
treeae7dfd0ece97a2b8ad8b9c0915878f2f18699d7e /tests/pending/run
parent1d13da929f7cce642efde39dff2944dfc5b276f9 (diff)
downloaddotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.tar.gz
dotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.tar.bz2
dotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.zip
Use LegacyApp in run tests.
Diffstat (limited to 'tests/pending/run')
-rw-r--r--tests/pending/run/Meter.scala2
-rw-r--r--tests/pending/run/MeterCaseClass.scala2
-rw-r--r--tests/pending/run/OrderingTest.scala2
-rw-r--r--tests/pending/run/Predef.readLine.scala2
-rw-r--r--tests/pending/run/ReverseSeqView.scala2
-rw-r--r--tests/pending/run/abstypetags_core.scala2
-rw-r--r--tests/pending/run/abstypetags_serialize.scala2
-rw-r--r--tests/pending/run/amp.scala2
-rw-r--r--tests/pending/run/applydynamic_sip.scala2
-rw-r--r--tests/pending/run/arrayclone-new.scala2
-rw-r--r--tests/pending/run/arrayclone-old.scala2
-rw-r--r--tests/pending/run/arybufgrow.scala2
-rw-r--r--tests/pending/run/bitsets.scala2
-rw-r--r--tests/pending/run/blame_eye_triple_eee-double.scala2
-rw-r--r--tests/pending/run/blame_eye_triple_eee-float.scala2
-rw-r--r--tests/pending/run/breakout.scala2
-rw-r--r--tests/pending/run/byname.scala2
-rw-r--r--tests/pending/run/case-class-23.scala2
-rw-r--r--tests/pending/run/caseclasses.scala2
-rw-r--r--tests/pending/run/castsingleton.scala2
-rw-r--r--tests/pending/run/checked.scala2
-rw-r--r--tests/pending/run/classmanifests_new_alias.scala2
-rw-r--r--tests/pending/run/classmanifests_new_core.scala2
-rw-r--r--tests/pending/run/classtags_contextbound.scala2
-rw-r--r--tests/pending/run/classtags_core.scala2
-rw-r--r--tests/pending/run/classtags_multi.scala2
-rw-r--r--tests/pending/run/collection-stacks.scala2
-rw-r--r--tests/pending/run/collections.scala2
-rw-r--r--tests/pending/run/colltest.scala2
-rw-r--r--tests/pending/run/colltest1.scala2
-rw-r--r--tests/pending/run/complicatedmatch.scala2
-rw-r--r--tests/pending/run/constant-optimization.scala2
-rw-r--r--tests/pending/run/contrib674.scala2
-rw-r--r--tests/pending/run/delambdafyLambdaClassNames/Test.scala2
-rw-r--r--tests/pending/run/deprecate-early-type-defs.scala2
-rw-r--r--tests/pending/run/duration-coarsest.scala2
-rw-r--r--tests/pending/run/enrich-gentraversable.scala2
-rw-r--r--tests/pending/run/exc.scala2
-rw-r--r--tests/pending/run/exc1.scala2
-rw-r--r--tests/pending/run/exc2.scala2
-rw-r--r--tests/pending/run/exceptions-nest.scala2
-rw-r--r--tests/pending/run/existentials.scala2
-rw-r--r--tests/pending/run/exoticnames.scala2
-rw-r--r--tests/pending/run/exprs_serialize.scala2
-rw-r--r--tests/pending/run/finally.scala2
-rw-r--r--tests/pending/run/fors.scala2
-rw-r--r--tests/pending/run/freetypes_false_alarm1.scala2
-rw-r--r--tests/pending/run/freetypes_false_alarm2.scala2
-rw-r--r--tests/pending/run/gadts.scala2
-rw-r--r--tests/pending/run/genericValueClass.scala2
-rw-r--r--tests/pending/run/hashset.scala2
-rw-r--r--tests/pending/run/hashsetremove.scala2
-rw-r--r--tests/pending/run/idempotency-case-classes.scala2
-rw-r--r--tests/pending/run/idempotency-extractors.scala2
-rw-r--r--tests/pending/run/idempotency-labels.scala2
-rw-r--r--tests/pending/run/idempotency-lazy-vals.scala2
-rw-r--r--tests/pending/run/idempotency-this.scala2
-rw-r--r--tests/pending/run/implicitclasses.scala2
-rw-r--r--tests/pending/run/implicits.scala2
-rw-r--r--tests/pending/run/indexedSeq-apply.scala2
-rw-r--r--tests/pending/run/infiniteloop.scala2
-rw-r--r--tests/pending/run/infix.scala2
-rw-r--r--tests/pending/run/inliner-infer.scala2
-rw-r--r--tests/pending/run/interop_classtags_are_classmanifests.scala2
-rw-r--r--tests/pending/run/interop_manifests_are_abstypetags.scala2
-rw-r--r--tests/pending/run/interop_manifests_are_classtags.scala2
-rw-r--r--tests/pending/run/interop_manifests_are_typetags.scala2
-rw-r--r--tests/pending/run/interop_typetags_are_manifests.scala2
-rw-r--r--tests/pending/run/interpolation.scala2
-rw-r--r--tests/pending/run/interpolationArgs.scala2
-rw-r--r--tests/pending/run/interpolationMultiline1.scala2
-rw-r--r--tests/pending/run/interpolationMultiline2.scala2
-rw-r--r--tests/pending/run/intmap.scala2
-rw-r--r--tests/pending/run/issue192.scala2
-rw-r--r--tests/pending/run/iterables.scala2
-rw-r--r--tests/pending/run/iterator-from.scala2
-rw-r--r--tests/pending/run/lazy-exprs.scala2
-rw-r--r--tests/pending/run/lazy-leaks.scala2
-rw-r--r--tests/pending/run/lazy-locals.scala2
-rw-r--r--tests/pending/run/lazy-override-run.scala2
-rw-r--r--tests/pending/run/lazy-traits.scala2
-rw-r--r--tests/pending/run/longmap.scala2
-rw-r--r--tests/pending/run/macro-abort-fresh/Test_2.scala2
-rw-r--r--tests/pending/run/macro-auto-duplicate/Test_2.scala2
-rw-r--r--tests/pending/run/macro-basic-ma-md-mi/Test_3.scala2
-rw-r--r--tests/pending/run/macro-basic-ma-mdmi/Test_2.scala2
-rw-r--r--tests/pending/run/macro-basic-mamd-mi/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-blackbox-materialization/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bodyexpandstoimpl/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-context-alias/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-context-refinement/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-static/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-toplevel/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-whitebox-decl/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-whitebox-use-raw/Test_2.scala2
-rw-r--r--tests/pending/run/macro-bundle-whitebox-use-refined/Test_2.scala2
-rw-r--r--tests/pending/run/macro-def-path-dependent/Dummy.scala2
-rw-r--r--tests/pending/run/macro-default-params/Test_2.scala2
-rw-r--r--tests/pending/run/macro-divergence-spurious/Test_2.scala2
-rw-r--r--tests/pending/run/macro-duplicate/Test_2.scala2
-rw-r--r--tests/pending/run/macro-enclosingowner-detectvar/Test_2.scala2
-rw-r--r--tests/pending/run/macro-enclosingowner-sbt/Test_2.scala2
-rw-r--r--tests/pending/run/macro-enclosures/Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-implicit-argument/Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-has-implicit/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-is-implicit/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-is-val/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-multiple-arglists/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-nullary-generic/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-overload/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-override/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-recursive/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-tparams-bounds/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-tparams-explicit/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-tparams-implicit/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-tparams-prefix/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-unapply-a/Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-bad/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-good/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-varargs-explicit-over-varargs/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-varargs-implicit-over-nonvarargs/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-expand-varargs-implicit-over-varargs/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-impl-default-params/Test_2.scala2
-rw-r--r--tests/pending/run/macro-impl-relaxed/Test_2.scala2
-rw-r--r--tests/pending/run/macro-impl-rename-context/Test_2.scala2
-rw-r--r--tests/pending/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-impl-tparam-typetag-is-optional/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-invalidret-doesnt-conform-to-def-rettype/Test_2.scala2
-rw-r--r--tests/pending/run/macro-invalidret-nontypeable/Test_2.scala2
-rw-r--r--tests/pending/run/macro-invalidusage-badret/Test_2.scala2
-rw-r--r--tests/pending/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala2
-rw-r--r--tests/pending/run/macro-invalidusage-partialapplication/Test_2.scala2
-rw-r--r--tests/pending/run/macro-openmacros/Test_2.scala2
-rw-r--r--tests/pending/run/macro-parse-position-malformed/Test_2.scala2
-rw-r--r--tests/pending/run/macro-parse-position/Test_2.scala2
-rw-r--r--tests/pending/run/macro-quasiinvalidbody-c/Test_2.scala2
-rw-r--r--tests/pending/run/macro-quasiquotes/Test_2.scala2
-rw-r--r--tests/pending/run/macro-range/Expansion_Impossible_2.scala2
-rw-r--r--tests/pending/run/macro-range/Expansion_Possible_3.scala2
-rw-r--r--tests/pending/run/macro-rangepos-args/Test_2.scala2
-rw-r--r--tests/pending/run/macro-rangepos-subpatterns/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reflective-ma-normal-mdmi/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-abstypetag-notypeparams/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-abstypetag-typeparams-tags/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-abstypetag-usetypetag/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-basic/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-chained1/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-chained2/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-freevars/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-nested-a1/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-nested-a2/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-nested-b1/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-nested-b2/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-ref-to-packageless/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-staticXXX/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-tagful-a/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-tagless-a/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-type/Test_2.scala2
-rw-r--r--tests/pending/run/macro-reify-typetag-notypeparams/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-typetag-typeparams-tags/Test.scala2
-rw-r--r--tests/pending/run/macro-reify-unreify/Test_2.scala2
-rw-r--r--tests/pending/run/macro-settings/Test_2.scala2
-rw-r--r--tests/pending/run/macro-sip19-revised/Test_2.scala2
-rw-r--r--tests/pending/run/macro-sip19/Test_2.scala2
-rw-r--r--tests/pending/run/macro-subpatterns/Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-annotation/Test_3.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-anonymous/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-block/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-class-class/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-class-object/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-default-param/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-implicit-class/Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-method/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-object-class/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-object-object/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-object/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-package-object/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-refinement/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-term-declared-in-trait/Macros_Test_2.scala2
-rw-r--r--tests/pending/run/macro-typecheck-implicitsdisabled/Test_2.scala2
-rw-r--r--tests/pending/run/macro-typecheck-macrosdisabled/Test_2.scala2
-rw-r--r--tests/pending/run/macro-typecheck-macrosdisabled2/Test_2.scala2
-rw-r--r--tests/pending/run/macro-undetparams-consfromsls/Test_2.scala2
-rw-r--r--tests/pending/run/macro-undetparams-implicitval/Test.scala2
-rw-r--r--tests/pending/run/macro-undetparams-macroitself/Test_2.scala2
-rw-r--r--tests/pending/run/macro-vampire-false-warning/Test_2.scala2
-rw-r--r--tests/pending/run/macro-whitebox-dynamic-materialization/Test_2.scala2
-rw-r--r--tests/pending/run/macro-whitebox-extractor/Test_2.scala2
-rw-r--r--tests/pending/run/macro-whitebox-fundep-materialization/Test_2.scala2
-rw-r--r--tests/pending/run/macro-whitebox-structural/Test_2.scala2
-rw-r--r--tests/pending/run/macroPlugins-isBlackbox/Test_3.scala2
-rw-r--r--tests/pending/run/macroPlugins-macroArgs/Test_3.scala2
-rw-r--r--tests/pending/run/macroPlugins-macroExpand/Test_3.scala2
-rw-r--r--tests/pending/run/macroPlugins-macroRuntime/Test_3.scala2
-rw-r--r--tests/pending/run/macroPlugins-typedMacroBody/Test_3.scala2
-rw-r--r--tests/pending/run/manifests-undeprecated-in-2.10.0.scala2
-rw-r--r--tests/pending/run/map_test.scala2
-rw-r--r--tests/pending/run/matcharraytail.scala2
-rw-r--r--tests/pending/run/matchbytes.scala2
-rw-r--r--tests/pending/run/matchemptyarray.scala2
-rw-r--r--tests/pending/run/matchintasany.scala2
-rw-r--r--tests/pending/run/matchonseq.scala2
-rw-r--r--tests/pending/run/matchonstream.scala2
-rw-r--r--tests/pending/run/mirror_symbolof_x.scala2
-rw-r--r--tests/pending/run/missingparams.scala2
-rw-r--r--tests/pending/run/multi-array.scala2
-rw-r--r--tests/pending/run/mutable-treeset.scala2
-rw-r--r--tests/pending/run/names-defaults.scala2
-rw-r--r--tests/pending/run/newTags.scala2
-rw-r--r--tests/pending/run/nothingTypeDce.scala2
-rw-r--r--tests/pending/run/nothingTypeNoFramesNoDce.scala2
-rw-r--r--tests/pending/run/nothingTypeNoOpt.scala2
-rw-r--r--tests/pending/run/nullable-lazyvals.scala2
-rw-r--r--tests/pending/run/outertest.scala2
-rw-r--r--tests/pending/run/patmat-finally.scala2
-rw-r--r--tests/pending/run/patmat_unapp_abstype-new.scala2
-rw-r--r--tests/pending/run/phantomValueClass.scala2
-rw-r--r--tests/pending/run/proxy.scala2
-rw-r--r--tests/pending/run/rawstrings.scala2
-rw-r--r--tests/pending/run/reflection-allmirrors-tostring.scala2
-rw-r--r--tests/pending/run/reflection-companion.scala2
-rw-r--r--tests/pending/run/reflection-companiontype.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-inner-badpath.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-inner-good.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-nested-badpath.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-nested-good.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-toplevel-badpath.scala2
-rw-r--r--tests/pending/run/reflection-constructormirror-toplevel-good.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-inner-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-inner-inner-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-inner-nested-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-nested-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-nested-inner-basic.scala2
-rw-r--r--tests/pending/run/reflection-enclosed-nested-nested-basic.scala2
-rw-r--r--tests/pending/run/reflection-fancy-java-classes/Test_2.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-accessorsareokay.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-ctorparam.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-getsetval.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-getsetvar.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-nmelocalsuffixstring.scala2
-rw-r--r--tests/pending/run/reflection-fieldmirror-privatethis.scala2
-rw-r--r--tests/pending/run/reflection-fieldsymbol-navigation.scala2
-rw-r--r--tests/pending/run/reflection-idtc.scala2
-rw-r--r--tests/pending/run/reflection-implClass.scala2
-rw-r--r--tests/pending/run/reflection-implicit.scala2
-rw-r--r--tests/pending/run/reflection-java-annotations/Test_2.scala2
-rw-r--r--tests/pending/run/reflection-java-crtp/Main_2.scala2
-rw-r--r--tests/pending/run/reflection-magicsymbols-invoke.scala2
-rw-r--r--tests/pending/run/reflection-magicsymbols-vanilla.scala2
-rw-r--r--tests/pending/run/reflection-methodsymbol-params.scala2
-rw-r--r--tests/pending/run/reflection-methodsymbol-returntype.scala2
-rw-r--r--tests/pending/run/reflection-methodsymbol-typeparams.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-inner-badpath.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-inner-good.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-nested-badpath.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-nested-good.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-toplevel-badpath.scala2
-rw-r--r--tests/pending/run/reflection-modulemirror-toplevel-good.scala2
-rw-r--r--tests/pending/run/reflection-sanitychecks.scala2
-rw-r--r--tests/pending/run/reflection-scala-annotations.scala2
-rw-r--r--tests/pending/run/reflection-sync-potpourri.scala2
-rw-r--r--tests/pending/run/reflection-sync-subtypes.scala2
-rw-r--r--tests/pending/run/reflection-tags.scala2
-rw-r--r--tests/pending/run/reflection-valueclasses-derived.scala2
-rw-r--r--tests/pending/run/reflection-valueclasses-magic.scala2
-rw-r--r--tests/pending/run/reflection-valueclasses-standard.scala2
-rw-r--r--tests/pending/run/reflinit.scala2
-rw-r--r--tests/pending/run/reify-aliases.scala2
-rw-r--r--tests/pending/run/reify-staticXXX.scala2
-rw-r--r--tests/pending/run/reify_ann1a.scala2
-rw-r--r--tests/pending/run/reify_ann1b.scala2
-rw-r--r--tests/pending/run/reify_ann2a.scala2
-rw-r--r--tests/pending/run/reify_ann3.scala2
-rw-r--r--tests/pending/run/reify_ann4.scala2
-rw-r--r--tests/pending/run/reify_ann5.scala2
-rw-r--r--tests/pending/run/reify_anonymous.scala2
-rw-r--r--tests/pending/run/reify_classfileann_a.scala2
-rw-r--r--tests/pending/run/reify_classfileann_b.scala2
-rw-r--r--tests/pending/run/reify_closure1.scala2
-rw-r--r--tests/pending/run/reify_closure2a.scala2
-rw-r--r--tests/pending/run/reify_closure3a.scala2
-rw-r--r--tests/pending/run/reify_closure4a.scala2
-rw-r--r--tests/pending/run/reify_closure5a.scala2
-rw-r--r--tests/pending/run/reify_closure6.scala2
-rw-r--r--tests/pending/run/reify_closure7.scala2
-rw-r--r--tests/pending/run/reify_closure8a.scala2
-rw-r--r--tests/pending/run/reify_closure8b.scala2
-rw-r--r--tests/pending/run/reify_closures10.scala2
-rw-r--r--tests/pending/run/reify_complex.scala2
-rw-r--r--tests/pending/run/reify_copypaste1.scala2
-rw-r--r--tests/pending/run/reify_copypaste2.scala2
-rw-r--r--tests/pending/run/reify_csv.scala2
-rw-r--r--tests/pending/run/reify_extendbuiltins.scala2
-rw-r--r--tests/pending/run/reify_for1.scala2
-rw-r--r--tests/pending/run/reify_fors_newpatmat.scala2
-rw-r--r--tests/pending/run/reify_fors_oldpatmat.scala2
-rw-r--r--tests/pending/run/reify_generic.scala2
-rw-r--r--tests/pending/run/reify_generic2.scala2
-rw-r--r--tests/pending/run/reify_getter.scala2
-rw-r--r--tests/pending/run/reify_implicits-new.scala2
-rw-r--r--tests/pending/run/reify_implicits-old.scala2
-rw-r--r--tests/pending/run/reify_inheritance.scala2
-rw-r--r--tests/pending/run/reify_inner1.scala2
-rw-r--r--tests/pending/run/reify_inner2.scala2
-rw-r--r--tests/pending/run/reify_inner3.scala2
-rw-r--r--tests/pending/run/reify_inner4.scala2
-rw-r--r--tests/pending/run/reify_lazyevaluation.scala2
-rw-r--r--tests/pending/run/reify_lazyunit.scala2
-rw-r--r--tests/pending/run/reify_magicsymbols.scala2
-rw-r--r--tests/pending/run/reify_maps_newpatmat.scala2
-rw-r--r--tests/pending/run/reify_maps_oldpatmat.scala2
-rw-r--r--tests/pending/run/reify_metalevel_breach_+0_refers_to_1.scala2
-rw-r--r--tests/pending/run/reify_metalevel_breach_-1_refers_to_0_a.scala2
-rw-r--r--tests/pending/run/reify_metalevel_breach_-1_refers_to_0_b.scala2
-rw-r--r--tests/pending/run/reify_metalevel_breach_-1_refers_to_1.scala2
-rw-r--r--tests/pending/run/reify_nested_inner_refers_to_global.scala2
-rw-r--r--tests/pending/run/reify_nested_inner_refers_to_local.scala2
-rw-r--r--tests/pending/run/reify_nested_outer_refers_to_global.scala2
-rw-r--r--tests/pending/run/reify_nested_outer_refers_to_local.scala2
-rw-r--r--tests/pending/run/reify_newimpl_01.scala2
-rw-r--r--tests/pending/run/reify_newimpl_02.scala2
-rw-r--r--tests/pending/run/reify_newimpl_03.scala2
-rw-r--r--tests/pending/run/reify_newimpl_04.scala2
-rw-r--r--tests/pending/run/reify_newimpl_05.scala2
-rw-r--r--tests/pending/run/reify_newimpl_06.scala2
-rw-r--r--tests/pending/run/reify_newimpl_11.scala2
-rw-r--r--tests/pending/run/reify_newimpl_12.scala2
-rw-r--r--tests/pending/run/reify_newimpl_13.scala2
-rw-r--r--tests/pending/run/reify_newimpl_14.scala2
-rw-r--r--tests/pending/run/reify_newimpl_15.scala2
-rw-r--r--tests/pending/run/reify_newimpl_18.scala2
-rw-r--r--tests/pending/run/reify_newimpl_19.scala2
-rw-r--r--tests/pending/run/reify_newimpl_20.scala2
-rw-r--r--tests/pending/run/reify_newimpl_21.scala2
-rw-r--r--tests/pending/run/reify_newimpl_27.scala2
-rw-r--r--tests/pending/run/reify_newimpl_29.scala2
-rw-r--r--tests/pending/run/reify_newimpl_30.scala2
-rw-r--r--tests/pending/run/reify_newimpl_31.scala2
-rw-r--r--tests/pending/run/reify_newimpl_33.scala2
-rw-r--r--tests/pending/run/reify_newimpl_36.scala2
-rw-r--r--tests/pending/run/reify_newimpl_37.scala2
-rw-r--r--tests/pending/run/reify_newimpl_38.scala2
-rw-r--r--tests/pending/run/reify_newimpl_39.scala2
-rw-r--r--tests/pending/run/reify_newimpl_40.scala2
-rw-r--r--tests/pending/run/reify_newimpl_41.scala2
-rw-r--r--tests/pending/run/reify_newimpl_42.scala2
-rw-r--r--tests/pending/run/reify_newimpl_43.scala2
-rw-r--r--tests/pending/run/reify_newimpl_44.scala2
-rw-r--r--tests/pending/run/reify_newimpl_45.scala2
-rw-r--r--tests/pending/run/reify_newimpl_47.scala2
-rw-r--r--tests/pending/run/reify_newimpl_48.scala2
-rw-r--r--tests/pending/run/reify_newimpl_49.scala2
-rw-r--r--tests/pending/run/reify_newimpl_50.scala2
-rw-r--r--tests/pending/run/reify_newimpl_51.scala2
-rw-r--r--tests/pending/run/reify_newimpl_52.scala2
-rw-r--r--tests/pending/run/reify_printf.scala2
-rw-r--r--tests/pending/run/reify_properties.scala2
-rw-r--r--tests/pending/run/reify_renamed_term_basic.scala2
-rw-r--r--tests/pending/run/reify_renamed_term_local_to_reifee.scala2
-rw-r--r--tests/pending/run/reify_renamed_term_overloaded_method.scala2
-rw-r--r--tests/pending/run/reify_renamed_term_t5841.scala2
-rw-r--r--tests/pending/run/reify_renamed_type_basic.scala2
-rw-r--r--tests/pending/run/reify_renamed_type_local_to_reifee.scala2
-rw-r--r--tests/pending/run/reify_renamed_type_spliceable.scala2
-rw-r--r--tests/pending/run/reify_sort.scala2
-rw-r--r--tests/pending/run/reify_sort1.scala2
-rw-r--r--tests/pending/run/reify_this.scala2
-rw-r--r--tests/pending/run/reify_timeofday.scala2
-rw-r--r--tests/pending/run/reify_typerefs_1a.scala2
-rw-r--r--tests/pending/run/reify_typerefs_1b.scala2
-rw-r--r--tests/pending/run/reify_typerefs_2a.scala2
-rw-r--r--tests/pending/run/reify_typerefs_2b.scala2
-rw-r--r--tests/pending/run/reify_typerefs_3a.scala2
-rw-r--r--tests/pending/run/reify_typerefs_3b.scala2
-rw-r--r--tests/pending/run/reify_varargs.scala2
-rw-r--r--tests/pending/run/repl-javap-app.scala2
-rw-r--r--tests/pending/run/resetattrs-this.scala2
-rw-r--r--tests/pending/run/runtime-richChar.scala2
-rw-r--r--tests/pending/run/runtimeEval1.scala2
-rw-r--r--tests/pending/run/runtimeEval2.scala2
-rw-r--r--tests/pending/run/search.scala2
-rw-r--r--tests/pending/run/showdecl/Test_2.scala2
-rw-r--r--tests/pending/run/showraw_aliases.scala2
-rw-r--r--tests/pending/run/showraw_mods.scala2
-rw-r--r--tests/pending/run/showraw_nosymbol.scala2
-rw-r--r--tests/pending/run/showraw_tree.scala2
-rw-r--r--tests/pending/run/showraw_tree_ids.scala2
-rw-r--r--tests/pending/run/showraw_tree_kinds.scala2
-rw-r--r--tests/pending/run/showraw_tree_types_ids.scala2
-rw-r--r--tests/pending/run/showraw_tree_types_typed.scala2
-rw-r--r--tests/pending/run/showraw_tree_types_untyped.scala2
-rw-r--r--tests/pending/run/showraw_tree_ultimate.scala2
-rw-r--r--tests/pending/run/slices.scala2
-rw-r--r--tests/pending/run/sm-interpolator.scala2
-rw-r--r--tests/pending/run/sort.scala2
-rw-r--r--tests/pending/run/stream-stack-overflow-filter-map.scala2
-rw-r--r--tests/pending/run/stream_flatmap_odds.scala2
-rw-r--r--tests/pending/run/streams.scala2
-rw-r--r--tests/pending/run/stringbuilder.scala2
-rw-r--r--tests/pending/run/stringinterpolation_macro-run.scala2
-rw-r--r--tests/pending/run/structural.scala2
-rw-r--r--tests/pending/run/synchronized.scala2
-rw-r--r--tests/pending/run/t0017.scala2
-rw-r--r--tests/pending/run/t0042.scala2
-rw-r--r--tests/pending/run/t0412.scala2
-rw-r--r--tests/pending/run/t0421-new.scala2
-rw-r--r--tests/pending/run/t0421-old.scala2
-rw-r--r--tests/pending/run/t0508.scala2
-rw-r--r--tests/pending/run/t0528.scala2
-rw-r--r--tests/pending/run/t0607.scala2
-rw-r--r--tests/pending/run/t0631.scala2
-rw-r--r--tests/pending/run/t0668.scala2
-rw-r--r--tests/pending/run/t0677-new.scala2
-rw-r--r--tests/pending/run/t0677-old.scala2
-rw-r--r--tests/pending/run/t0807.scala2
-rw-r--r--tests/pending/run/t0883.scala2
-rw-r--r--tests/pending/run/t0911.scala2
-rw-r--r--tests/pending/run/t0936.scala2
-rw-r--r--tests/pending/run/t1042.scala2
-rw-r--r--tests/pending/run/t1044.scala2
-rw-r--r--tests/pending/run/t1110.scala2
-rw-r--r--tests/pending/run/t1141.scala2
-rw-r--r--tests/pending/run/t1167.scala2
-rw-r--r--tests/pending/run/t1192.scala2
-rw-r--r--tests/pending/run/t1220.scala2
-rw-r--r--tests/pending/run/t1247.scala2
-rw-r--r--tests/pending/run/t1300.scala2
-rw-r--r--tests/pending/run/t1323.scala2
-rw-r--r--tests/pending/run/t1368.scala2
-rw-r--r--tests/pending/run/t1373.scala2
-rw-r--r--tests/pending/run/t1423.scala2
-rw-r--r--tests/pending/run/t1466.scala2
-rw-r--r--tests/pending/run/t1503.scala2
-rw-r--r--tests/pending/run/t1503_future.scala2
-rw-r--r--tests/pending/run/t1505.scala2
-rw-r--r--tests/pending/run/t1524.scala2
-rw-r--r--tests/pending/run/t153.scala2
-rw-r--r--tests/pending/run/t1535.scala2
-rw-r--r--tests/pending/run/t1591.scala2
-rw-r--r--tests/pending/run/t1618.scala2
-rw-r--r--tests/pending/run/t1718.scala2
-rw-r--r--tests/pending/run/t1747.scala2
-rw-r--r--tests/pending/run/t1766.scala2
-rw-r--r--tests/pending/run/t1909.scala2
-rw-r--r--tests/pending/run/t1909b.scala2
-rw-r--r--tests/pending/run/t1909c.scala2
-rw-r--r--tests/pending/run/t1939.scala2
-rw-r--r--tests/pending/run/t2030.scala2
-rw-r--r--tests/pending/run/t2075.scala2
-rw-r--r--tests/pending/run/t2111.scala2
-rw-r--r--tests/pending/run/t2147.scala2
-rw-r--r--tests/pending/run/t216.scala2
-rw-r--r--tests/pending/run/t2176.scala2
-rw-r--r--tests/pending/run/t2177.scala2
-rw-r--r--tests/pending/run/t2236-new.scala2
-rw-r--r--tests/pending/run/t2236-old.scala2
-rw-r--r--tests/pending/run/t2241.scala2
-rw-r--r--tests/pending/run/t2255.scala2
-rw-r--r--tests/pending/run/t2386-new.scala2
-rw-r--r--tests/pending/run/t2488.scala2
-rwxr-xr-xtests/pending/run/t2503.scala2
-rw-r--r--tests/pending/run/t2552.scala2
-rw-r--r--tests/pending/run/t2788.scala2
-rw-r--r--tests/pending/run/t2813.2.scala2
-rw-r--r--tests/pending/run/t2818.scala2
-rw-r--r--tests/pending/run/t2857.scala2
-rw-r--r--tests/pending/run/t298.scala2
-rw-r--r--tests/pending/run/t3038.scala2
-rw-r--r--tests/pending/run/t3038b.scala2
-rw-r--r--tests/pending/run/t3097.scala2
-rw-r--r--tests/pending/run/t3186.scala2
-rw-r--r--tests/pending/run/t3346a.scala2
-rw-r--r--tests/pending/run/t3346d.scala2
-rw-r--r--tests/pending/run/t3346e.scala2
-rw-r--r--tests/pending/run/t3346f.scala2
-rw-r--r--tests/pending/run/t3346g.scala2
-rw-r--r--tests/pending/run/t3346h.scala2
-rw-r--r--tests/pending/run/t3346j.scala2
-rw-r--r--tests/pending/run/t3353.scala2
-rw-r--r--tests/pending/run/t3361.scala2
-rw-r--r--tests/pending/run/t3452e/Test.scala2
-rw-r--r--tests/pending/run/t3452h.scala2
-rw-r--r--tests/pending/run/t3488.scala2
-rw-r--r--tests/pending/run/t3507-new.scala2
-rw-r--r--tests/pending/run/t3619.scala2
-rw-r--r--tests/pending/run/t3670.scala4
-rw-r--r--tests/pending/run/t3687.scala2
-rw-r--r--tests/pending/run/t3719.scala2
-rw-r--r--tests/pending/run/t3726.scala2
-rw-r--r--tests/pending/run/t3763.scala2
-rw-r--r--tests/pending/run/t3832.scala2
-rw-r--r--tests/pending/run/t3835.scala2
-rw-r--r--tests/pending/run/t3950.scala2
-rw-r--r--tests/pending/run/t3994.scala2
-rw-r--r--tests/pending/run/t4024.scala2
-rw-r--r--tests/pending/run/t4027.scala2
-rw-r--r--tests/pending/run/t4047.scala2
-rw-r--r--tests/pending/run/t405.scala2
-rw-r--r--tests/pending/run/t4110-new.scala2
-rw-r--r--tests/pending/run/t4110-old.scala2
-rw-r--r--tests/pending/run/t4124.scala2
-rw-r--r--tests/pending/run/t4190.scala2
-rw-r--r--tests/pending/run/t4332b.scala2
-rw-r--r--tests/pending/run/t4396.scala4
-rw-r--r--tests/pending/run/t4537/d.scala2
-rw-r--r--tests/pending/run/t4742.scala2
-rw-r--r--tests/pending/run/t4750.scala2
-rw-r--r--tests/pending/run/t4766.scala2
-rw-r--r--tests/pending/run/t4777.scala2
-rw-r--r--tests/pending/run/t4813.scala2
-rw-r--r--tests/pending/run/t4935.scala2
-rw-r--r--tests/pending/run/t498.scala2
-rw-r--r--tests/pending/run/t5009.scala2
-rw-r--r--tests/pending/run/t5040.scala2
-rw-r--r--tests/pending/run/t5045.scala2
-rw-r--r--tests/pending/run/t5053.scala2
-rw-r--r--tests/pending/run/t5080.scala2
-rw-r--r--tests/pending/run/t5125.scala2
-rw-r--r--tests/pending/run/t5125b.scala2
-rw-r--r--tests/pending/run/t5134.scala2
-rw-r--r--tests/pending/run/t5171.scala2
-rw-r--r--tests/pending/run/t5201.scala2
-rw-r--r--tests/pending/run/t5224.scala2
-rw-r--r--tests/pending/run/t5225_1.scala2
-rw-r--r--tests/pending/run/t5225_2.scala2
-rw-r--r--tests/pending/run/t5229_1.scala2
-rw-r--r--tests/pending/run/t5229_2.scala2
-rw-r--r--tests/pending/run/t5230.scala2
-rw-r--r--tests/pending/run/t5256a.scala2
-rw-r--r--tests/pending/run/t5256b.scala2
-rw-r--r--tests/pending/run/t5256c.scala2
-rw-r--r--tests/pending/run/t5256e.scala2
-rw-r--r--tests/pending/run/t5256f.scala2
-rw-r--r--tests/pending/run/t5256g.scala2
-rw-r--r--tests/pending/run/t5256h.scala2
-rw-r--r--tests/pending/run/t5258a.scala2
-rw-r--r--tests/pending/run/t5266_1.scala2
-rw-r--r--tests/pending/run/t5266_2.scala2
-rw-r--r--tests/pending/run/t5269.scala2
-rw-r--r--tests/pending/run/t5270.scala2
-rw-r--r--tests/pending/run/t5271_1.scala2
-rw-r--r--tests/pending/run/t5271_2.scala2
-rw-r--r--tests/pending/run/t5271_3.scala2
-rw-r--r--tests/pending/run/t5271_4.scala2
-rw-r--r--tests/pending/run/t5272_1_newpatmat.scala2
-rw-r--r--tests/pending/run/t5272_1_oldpatmat.scala2
-rw-r--r--tests/pending/run/t5272_2_newpatmat.scala2
-rw-r--r--tests/pending/run/t5272_2_oldpatmat.scala2
-rw-r--r--tests/pending/run/t5273_1_newpatmat.scala2
-rw-r--r--tests/pending/run/t5273_1_oldpatmat.scala2
-rw-r--r--tests/pending/run/t5273_2a_newpatmat.scala2
-rw-r--r--tests/pending/run/t5273_2a_oldpatmat.scala2
-rw-r--r--tests/pending/run/t5273_2b_newpatmat.scala2
-rw-r--r--tests/pending/run/t5273_2b_oldpatmat.scala2
-rw-r--r--tests/pending/run/t5274_1.scala2
-rw-r--r--tests/pending/run/t5274_2.scala2
-rw-r--r--tests/pending/run/t5275.scala2
-rw-r--r--tests/pending/run/t5276_1a.scala2
-rw-r--r--tests/pending/run/t5276_1b.scala2
-rw-r--r--tests/pending/run/t5276_2a.scala2
-rw-r--r--tests/pending/run/t5276_2b.scala2
-rw-r--r--tests/pending/run/t5277_1.scala2
-rw-r--r--tests/pending/run/t5277_2.scala2
-rw-r--r--tests/pending/run/t5279.scala2
-rw-r--r--tests/pending/run/t5293-map.scala2
-rw-r--r--tests/pending/run/t5293.scala2
-rw-r--r--tests/pending/run/t5328.scala2
-rw-r--r--tests/pending/run/t5334_1.scala2
-rw-r--r--tests/pending/run/t5334_2.scala2
-rw-r--r--tests/pending/run/t5335.scala2
-rw-r--r--tests/pending/run/t5375.scala2
-rw-r--r--tests/pending/run/t5387.scala2
-rw-r--r--tests/pending/run/t5394.scala2
-rw-r--r--tests/pending/run/t5407.scala2
-rw-r--r--tests/pending/run/t5415.scala2
-rw-r--r--tests/pending/run/t5418.scala2
-rw-r--r--tests/pending/run/t5418a.scala2
-rw-r--r--tests/pending/run/t5418b.scala2
-rw-r--r--tests/pending/run/t5419.scala2
-rw-r--r--tests/pending/run/t5423.scala2
-rw-r--r--tests/pending/run/t5530.scala2
-rw-r--r--tests/pending/run/t5532.scala2
-rw-r--r--tests/pending/run/t5544/Test_2.scala2
-rw-r--r--tests/pending/run/t5565.scala2
-rw-r--r--tests/pending/run/t5603.scala2
-rw-r--r--tests/pending/run/t5610a.scala2
-rw-r--r--tests/pending/run/t5614.scala2
-rw-r--r--tests/pending/run/t5629b.scala2
-rw-r--r--tests/pending/run/t5652c/t5652c.scala2
-rw-r--r--tests/pending/run/t5680.scala2
-rw-r--r--tests/pending/run/t5688.scala2
-rw-r--r--tests/pending/run/t5704.scala2
-rw-r--r--tests/pending/run/t5710-1.scala2
-rw-r--r--tests/pending/run/t5710-2.scala2
-rw-r--r--tests/pending/run/t5713/Test_2.scala2
-rw-r--r--tests/pending/run/t5733.scala2
-rw-r--r--tests/pending/run/t5753_1/Test_2.scala2
-rw-r--r--tests/pending/run/t5753_2/Test_2.scala2
-rw-r--r--tests/pending/run/t5770.scala2
-rw-r--r--tests/pending/run/t5816.scala2
-rw-r--r--tests/pending/run/t5824.scala2
-rw-r--r--tests/pending/run/t5830.scala2
-rw-r--r--tests/pending/run/t5840.scala2
-rw-r--r--tests/pending/run/t5856.scala2
-rw-r--r--tests/pending/run/t5881.scala2
-rw-r--r--tests/pending/run/t5903a/Test_2.scala2
-rw-r--r--tests/pending/run/t5903b/Test_2.scala2
-rw-r--r--tests/pending/run/t5903c/Test_2.scala2
-rw-r--r--tests/pending/run/t5903d/Test_2.scala2
-rw-r--r--tests/pending/run/t5907.scala2
-rw-r--r--tests/pending/run/t5912.scala2
-rw-r--r--tests/pending/run/t5914.scala2
-rw-r--r--tests/pending/run/t5923a/Test_2.scala2
-rw-r--r--tests/pending/run/t5923b/Test.scala2
-rw-r--r--tests/pending/run/t5923c.scala2
-rw-r--r--tests/pending/run/t5923d/Test_2.scala2
-rw-r--r--tests/pending/run/t5937.scala2
-rw-r--r--tests/pending/run/t5940.scala2
-rw-r--r--tests/pending/run/t5942.scala2
-rw-r--r--tests/pending/run/t5943a1.scala2
-rw-r--r--tests/pending/run/t5943a2.scala2
-rw-r--r--tests/pending/run/t5974.scala2
-rw-r--r--tests/pending/run/t6011b.scala2
-rw-r--r--tests/pending/run/t6011c.scala2
-rw-r--r--tests/pending/run/t6023.scala2
-rw-r--r--tests/pending/run/t6052.scala2
-rw-r--r--tests/pending/run/t6064.scala2
-rw-r--r--tests/pending/run/t6070.scala2
-rw-r--r--tests/pending/run/t6077_patmat_cse_irrefutable.scala2
-rw-r--r--tests/pending/run/t6086-vanilla.scala2
-rw-r--r--tests/pending/run/t6111.scala2
-rw-r--r--tests/pending/run/t6113.scala2
-rw-r--r--tests/pending/run/t6114.scala2
-rw-r--r--tests/pending/run/t6135.scala2
-rw-r--r--tests/pending/run/t6168/main.scala2
-rw-r--r--tests/pending/run/t6168b/main.scala2
-rw-r--r--tests/pending/run/t6175.scala2
-rw-r--r--tests/pending/run/t6178.scala2
-rw-r--r--tests/pending/run/t6181.scala2
-rw-r--r--tests/pending/run/t6187b.scala2
-rw-r--r--tests/pending/run/t6196.scala2
-rw-r--r--tests/pending/run/t6197.scala2
-rw-r--r--tests/pending/run/t6198.scala2
-rw-r--r--tests/pending/run/t6199-mirror.scala2
-rw-r--r--tests/pending/run/t6199-toolbox.scala2
-rw-r--r--tests/pending/run/t6200.scala2
-rw-r--r--tests/pending/run/t6220.scala2
-rw-r--r--tests/pending/run/t6221/Test_2.scala2
-rw-r--r--tests/pending/run/t6240-universe-code-gen.scala2
-rw-r--r--tests/pending/run/t6240a/StepTwo.scala2
-rw-r--r--tests/pending/run/t6240a/Test.scala2
-rw-r--r--tests/pending/run/t6240b/StepThree.scala2
-rw-r--r--tests/pending/run/t6240b/StepTwo.scala2
-rw-r--r--tests/pending/run/t6240b/Test.scala2
-rw-r--r--tests/pending/run/t6246.scala2
-rw-r--r--tests/pending/run/t6253a.scala2
-rw-r--r--tests/pending/run/t6253b.scala2
-rw-r--r--tests/pending/run/t6253c.scala2
-rw-r--r--tests/pending/run/t6259.scala2
-rw-r--r--tests/pending/run/t6260b.scala2
-rw-r--r--tests/pending/run/t6261.scala2
-rw-r--r--tests/pending/run/t6271.scala2
-rw-r--r--tests/pending/run/t6277.scala2
-rw-r--r--tests/pending/run/t6287.scala2
-rw-r--r--tests/pending/run/t6318_derived.scala2
-rw-r--r--tests/pending/run/t6318_primitives.scala2
-rw-r--r--tests/pending/run/t6323b.scala2
-rw-r--r--tests/pending/run/t6327.scala2
-rw-r--r--tests/pending/run/t6329_vanilla.scala2
-rw-r--r--tests/pending/run/t6329_vanilla_bug.scala2
-rw-r--r--tests/pending/run/t6331b.scala2
-rw-r--r--tests/pending/run/t6333.scala2
-rw-r--r--tests/pending/run/t6353.scala2
-rw-r--r--tests/pending/run/t6379/Test_2.scala2
-rw-r--r--tests/pending/run/t6380.scala2
-rw-r--r--tests/pending/run/t6392a.scala2
-rw-r--r--tests/pending/run/t6392b.scala2
-rw-r--r--tests/pending/run/t6394a/Test_2.scala2
-rw-r--r--tests/pending/run/t6394b/Test_2.scala2
-rw-r--r--tests/pending/run/t6406-regextract.scala2
-rw-r--r--tests/pending/run/t6410.scala2
-rw-r--r--tests/pending/run/t6411a.scala2
-rw-r--r--tests/pending/run/t6411b.scala2
-rw-r--r--tests/pending/run/t6443.scala2
-rw-r--r--tests/pending/run/t6443b.scala2
-rw-r--r--tests/pending/run/t6467.scala2
-rw-r--r--tests/pending/run/t6500.scala2
-rw-r--r--tests/pending/run/t6541.scala2
-rw-r--r--tests/pending/run/t6548/Test_2.scala2
-rw-r--r--tests/pending/run/t6554.scala2
-rw-r--r--tests/pending/run/t657.scala2
-rw-r--r--tests/pending/run/t6574b.scala2
-rw-r--r--tests/pending/run/t6591_1.scala2
-rw-r--r--tests/pending/run/t6591_2.scala2
-rw-r--r--tests/pending/run/t6591_3.scala2
-rw-r--r--tests/pending/run/t6591_5.scala2
-rw-r--r--tests/pending/run/t6591_6.scala2
-rw-r--r--tests/pending/run/t6591_7.scala2
-rw-r--r--tests/pending/run/t6608.scala2
-rw-r--r--tests/pending/run/t6611.scala2
-rw-r--r--tests/pending/run/t6614.scala2
-rw-r--r--tests/pending/run/t6622.scala2
-rw-r--r--tests/pending/run/t6632.scala2
-rw-r--r--tests/pending/run/t6633.scala2
-rw-r--r--tests/pending/run/t6634.scala2
-rw-r--r--tests/pending/run/t6637.scala2
-rw-r--r--tests/pending/run/t6644.scala2
-rw-r--r--tests/pending/run/t6663.scala2
-rw-r--r--tests/pending/run/t6669.scala2
-rw-r--r--tests/pending/run/t6673.scala2
-rw-r--r--tests/pending/run/t6690.scala2
-rw-r--r--tests/pending/run/t6695.scala2
-rw-r--r--tests/pending/run/t6719.scala2
-rw-r--r--tests/pending/run/t6725-1.scala2
-rw-r--r--tests/pending/run/t6725-2.scala2
-rw-r--r--tests/pending/run/t6732.scala2
-rw-r--r--tests/pending/run/t6733.scala2
-rw-r--r--tests/pending/run/t6793.scala2
-rw-r--r--tests/pending/run/t6793b.scala2
-rw-r--r--tests/pending/run/t6793c.scala2
-rw-r--r--tests/pending/run/t6814/Test_2.scala2
-rw-r--r--tests/pending/run/t6827.scala2
-rw-r--r--tests/pending/run/t6888.scala2
-rw-r--r--tests/pending/run/t6900.scala2
-rw-r--r--tests/pending/run/t6988.scala2
-rw-r--r--tests/pending/run/t6989/Test_2.scala2
-rw-r--r--tests/pending/run/t6992/Test_2.scala2
-rw-r--r--tests/pending/run/t7008-scala-defined/Test_3.scala2
-rw-r--r--tests/pending/run/t7008/Test_3.scala2
-rw-r--r--tests/pending/run/t7039.scala2
-rw-r--r--tests/pending/run/t7044/Test_2.scala2
-rw-r--r--tests/pending/run/t7045.scala2
-rw-r--r--tests/pending/run/t7046.scala2
-rw-r--r--tests/pending/run/t7047/Test_2.scala2
-rw-r--r--tests/pending/run/t7120b.scala2
-rw-r--r--tests/pending/run/t7157/Test_2.scala2
-rw-r--r--tests/pending/run/t7171.scala2
-rw-r--r--tests/pending/run/t7181.scala2
-rw-r--r--tests/pending/run/t7198.scala2
-rw-r--r--tests/pending/run/t7200.scala2
-rw-r--r--tests/pending/run/t7214.scala2
-rw-r--r--tests/pending/run/t7215.scala2
-rw-r--r--tests/pending/run/t7223.scala2
-rw-r--r--tests/pending/run/t7231.scala2
-rw-r--r--tests/pending/run/t7235.scala2
-rw-r--r--tests/pending/run/t7240/Test_2.scala2
-rw-r--r--tests/pending/run/t7242.scala2
-rwxr-xr-xtests/pending/run/t7246/Test.scala2
-rwxr-xr-xtests/pending/run/t7246b/Test.scala2
-rw-r--r--tests/pending/run/t7249.scala2
-rw-r--r--tests/pending/run/t7269.scala2
-rw-r--r--tests/pending/run/t7290.scala2
-rw-r--r--tests/pending/run/t7300.scala2
-rw-r--r--tests/pending/run/t7325.scala2
-rw-r--r--tests/pending/run/t7326.scala2
-rw-r--r--tests/pending/run/t7328.scala2
-rw-r--r--tests/pending/run/t7331a.scala2
-rw-r--r--tests/pending/run/t7331b.scala2
-rw-r--r--tests/pending/run/t7331c.scala2
-rwxr-xr-xtests/pending/run/t7341.scala2
-rw-r--r--tests/pending/run/t7359/Test_2.scala2
-rw-r--r--tests/pending/run/t7375b/Test_2.scala2
-rw-r--r--tests/pending/run/t7445.scala2
-rw-r--r--tests/pending/run/t7498.scala2
-rw-r--r--tests/pending/run/t7507.scala2
-rw-r--r--tests/pending/run/t7510/Test_2.scala2
-rw-r--r--tests/pending/run/t7533.scala2
-rw-r--r--tests/pending/run/t7558.scala2
-rw-r--r--tests/pending/run/t7570a.scala2
-rw-r--r--tests/pending/run/t7570b.scala2
-rw-r--r--tests/pending/run/t7570c.scala2
-rw-r--r--tests/pending/run/t7571.scala2
-rw-r--r--tests/pending/run/t7584.scala2
-rw-r--r--tests/pending/run/t7584b.scala2
-rw-r--r--tests/pending/run/t7617a/Test_2.scala2
-rw-r--r--tests/pending/run/t7617b/Test_2.scala2
-rw-r--r--tests/pending/run/t7657/Test_2.scala2
-rw-r--r--tests/pending/run/t7700.scala2
-rw-r--r--tests/pending/run/t7715.scala2
-rw-r--r--tests/pending/run/t7777/Test_2.scala2
-rw-r--r--tests/pending/run/t7779.scala2
-rw-r--r--tests/pending/run/t7817.scala2
-rw-r--r--tests/pending/run/t7843-jsr223-service.scala2
-rw-r--r--tests/pending/run/t7868.scala2
-rw-r--r--tests/pending/run/t7868b.scala2
-rw-r--r--tests/pending/run/t7871/Test_2.scala2
-rw-r--r--tests/pending/run/t7880.scala2
-rw-r--r--tests/pending/run/t7899.scala2
-rw-r--r--tests/pending/run/t7932.scala2
-rw-r--r--tests/pending/run/t7933.scala2
-rw-r--r--tests/pending/run/t7985.scala2
-rw-r--r--tests/pending/run/t7985b.scala2
-rw-r--r--tests/pending/run/t8002.scala2
-rw-r--r--tests/pending/run/t8010.scala2
-rw-r--r--tests/pending/run/t8015-ffc.scala2
-rw-r--r--tests/pending/run/t8047.scala2
-rw-r--r--tests/pending/run/t8048a/Test_2.scala2
-rw-r--r--tests/pending/run/t8048b/Test_2.scala2
-rw-r--r--tests/pending/run/t8087.scala2
-rw-r--r--tests/pending/run/t8091.scala2
-rw-r--r--tests/pending/run/t8104/Test_2.scala2
-rw-r--r--tests/pending/run/t8177f.scala2
-rw-r--r--tests/pending/run/t8190.scala2
-rw-r--r--tests/pending/run/t8192/Test_2.scala2
-rw-r--r--tests/pending/run/t8196.scala2
-rw-r--r--tests/pending/run/t8197.scala2
-rw-r--r--tests/pending/run/t8197b.scala2
-rw-r--r--tests/pending/run/t8199.scala2
-rw-r--r--tests/pending/run/t8266-octal-interp.scala2
-rw-r--r--tests/pending/run/t8321/Test_2.scala2
-rw-r--r--tests/pending/run/t8346.scala2
-rw-r--r--tests/pending/run/t8425/Test_2.scala2
-rw-r--r--tests/pending/run/t8428.scala2
-rw-r--r--tests/pending/run/t8437/Test_2.scala2
-rw-r--r--tests/pending/run/t8445.scala2
-rw-r--r--tests/pending/run/t8549.scala2
-rw-r--r--tests/pending/run/t8549b.scala2
-rw-r--r--tests/pending/run/t8574.scala2
-rw-r--r--tests/pending/run/t8601e/Test.scala2
-rw-r--r--tests/pending/run/t8610.scala2
-rw-r--r--tests/pending/run/t8611a.scala2
-rw-r--r--tests/pending/run/t8611b.scala2
-rw-r--r--tests/pending/run/t8611c.scala2
-rw-r--r--tests/pending/run/t8637.scala2
-rw-r--r--tests/pending/run/t8680.scala2
-rw-r--r--tests/pending/run/t8690.scala2
-rw-r--r--tests/pending/run/t8764.scala2
-rw-r--r--tests/pending/run/t8803.scala2
-rw-r--r--tests/pending/run/t8823.scala2
-rw-r--r--tests/pending/run/t8845.scala2
-rw-r--r--tests/pending/run/t8888.scala2
-rw-r--r--tests/pending/run/t889.scala2
-rw-r--r--tests/pending/run/t8931.scala2
-rw-r--r--tests/pending/run/t8960.scala2
-rw-r--r--tests/pending/run/t949.scala2
-rw-r--r--tests/pending/run/t978.scala2
-rw-r--r--tests/pending/run/tailcalls.scala2
-rw-r--r--tests/pending/run/tcpoly_overriding.scala2
-rw-r--r--tests/pending/run/toolbox_console_reporter.scala2
-rw-r--r--tests/pending/run/toolbox_current_run_compiles.scala2
-rw-r--r--tests/pending/run/toolbox_default_reporter_is_silent.scala2
-rw-r--r--tests/pending/run/toolbox_parse_package.scala2
-rw-r--r--tests/pending/run/toolbox_silent_reporter.scala2
-rw-r--r--tests/pending/run/toolbox_typecheck_implicitsdisabled.scala2
-rw-r--r--tests/pending/run/toolbox_typecheck_inferimplicitvalue.scala2
-rw-r--r--tests/pending/run/toolbox_typecheck_macrosdisabled.scala2
-rw-r--r--tests/pending/run/toolbox_typecheck_macrosdisabled2.scala2
-rw-r--r--tests/pending/run/tuples.scala2
-rw-r--r--tests/pending/run/typealias_overriding.scala2
-rw-r--r--tests/pending/run/typecheck/Test_2.scala2
-rw-r--r--tests/pending/run/typed-annotated/Test_2.scala2
-rw-r--r--tests/pending/run/typetags_core.scala2
-rw-r--r--tests/pending/run/typetags_multi.scala2
-rw-r--r--tests/pending/run/typetags_serialize.scala2
-rw-r--r--tests/pending/run/typetags_symbolof_x.scala2
-rw-r--r--tests/pending/run/typetags_without_scala_reflect_manifest_lookup.scala2
-rw-r--r--tests/pending/run/typetags_without_scala_reflect_typetag_lookup.scala2
-rw-r--r--tests/pending/run/unboxingBug.scala2
-rw-r--r--tests/pending/run/unreachable.scala2
-rw-r--r--tests/pending/run/valueclasses-classmanifest-basic.scala2
-rw-r--r--tests/pending/run/valueclasses-classmanifest-existential.scala2
-rw-r--r--tests/pending/run/valueclasses-classmanifest-generic.scala2
-rw-r--r--tests/pending/run/valueclasses-classtag-basic.scala2
-rw-r--r--tests/pending/run/valueclasses-classtag-existential.scala2
-rw-r--r--tests/pending/run/valueclasses-classtag-generic.scala2
-rw-r--r--tests/pending/run/valueclasses-constr.scala2
-rw-r--r--tests/pending/run/valueclasses-manifest-basic.scala2
-rw-r--r--tests/pending/run/valueclasses-manifest-existential.scala2
-rw-r--r--tests/pending/run/valueclasses-manifest-generic.scala2
-rw-r--r--tests/pending/run/valueclasses-typetag-basic.scala2
-rw-r--r--tests/pending/run/valueclasses-typetag-existential.scala2
-rw-r--r--tests/pending/run/valueclasses-typetag-generic.scala2
-rw-r--r--tests/pending/run/var-arity-class-symbol.scala2
-rw-r--r--tests/pending/run/viewtest.check12
-rwxr-xr-xtests/pending/run/viewtest.scala45
-rw-r--r--tests/pending/run/virtpatmat_alts.scala2
-rw-r--r--tests/pending/run/virtpatmat_apply.scala2
-rw-r--r--tests/pending/run/virtpatmat_casting.scala2
-rw-r--r--tests/pending/run/virtpatmat_extends_product.scala2
-rw-r--r--tests/pending/run/virtpatmat_literal.scala2
-rw-r--r--tests/pending/run/virtpatmat_nested_lists.scala2
-rw-r--r--tests/pending/run/virtpatmat_opt_sharing.scala2
-rw-r--r--tests/pending/run/virtpatmat_partial.scala2
-rw-r--r--tests/pending/run/virtpatmat_partial_backquoted.scala2
-rw-r--r--tests/pending/run/virtpatmat_stringinterp.scala2
-rw-r--r--tests/pending/run/virtpatmat_switch.scala2
-rw-r--r--tests/pending/run/virtpatmat_tailcalls_verifyerror.scala2
-rw-r--r--tests/pending/run/virtpatmat_try.scala2
-rw-r--r--tests/pending/run/virtpatmat_typed.scala2
-rw-r--r--tests/pending/run/virtpatmat_typetag.scala2
-rw-r--r--tests/pending/run/virtpatmat_unapply.scala2
-rw-r--r--tests/pending/run/virtpatmat_unapplyprod.scala2
-rw-r--r--tests/pending/run/virtpatmat_unapplyseq.scala2
-rw-r--r--tests/pending/run/virtpatmat_valdef.scala2
-rwxr-xr-xtests/pending/run/weakconform.scala2
902 files changed, 902 insertions, 959 deletions
diff --git a/tests/pending/run/Meter.scala b/tests/pending/run/Meter.scala
index 9315be062..79d189f93 100644
--- a/tests/pending/run/Meter.scala
+++ b/tests/pending/run/Meter.scala
@@ -48,7 +48,7 @@ package b {
}
import a._
import _root_.b._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x: Meter = new Meter(1)
diff --git a/tests/pending/run/MeterCaseClass.scala b/tests/pending/run/MeterCaseClass.scala
index 9b32fc24e..1215afd4a 100644
--- a/tests/pending/run/MeterCaseClass.scala
+++ b/tests/pending/run/MeterCaseClass.scala
@@ -45,7 +45,7 @@ package b {
}
import a._
import _root_.b._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x: Meter = new Meter(1)
diff --git a/tests/pending/run/OrderingTest.scala b/tests/pending/run/OrderingTest.scala
index 8af18aaba..ad5acfa0c 100644
--- a/tests/pending/run/OrderingTest.scala
+++ b/tests/pending/run/OrderingTest.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test[T](t1 : T, t2 : T)(implicit ord : Ordering[T]) = {
val cmp = ord.compare(t1, t2);
val cmp2 = ord.compare(t2, t1);
diff --git a/tests/pending/run/Predef.readLine.scala b/tests/pending/run/Predef.readLine.scala
index ce8565864..f751949e8 100644
--- a/tests/pending/run/Predef.readLine.scala
+++ b/tests/pending/run/Predef.readLine.scala
@@ -1,7 +1,7 @@
import java.io.StringReader
import scala.io.StdIn.readLine
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Console.withIn(new StringReader("")) {
readLine()
readLine("prompt\n")
diff --git a/tests/pending/run/ReverseSeqView.scala b/tests/pending/run/ReverseSeqView.scala
index 2004791bf..edb2e8c28 100644
--- a/tests/pending/run/ReverseSeqView.scala
+++ b/tests/pending/run/ReverseSeqView.scala
@@ -4,7 +4,7 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val lstv = List(1, 2, 3).view
val lstvr = lstv.reverse
diff --git a/tests/pending/run/abstypetags_core.scala b/tests/pending/run/abstypetags_core.scala
index 4c98a65c0..ac4f07d46 100644
--- a/tests/pending/run/abstypetags_core.scala
+++ b/tests/pending/run/abstypetags_core.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[WeakTypeTag[Byte]] eq WeakTypeTag.Byte)
println(implicitly[WeakTypeTag[Byte]])
println(implicitly[WeakTypeTag[Short]] eq WeakTypeTag.Short)
diff --git a/tests/pending/run/abstypetags_serialize.scala b/tests/pending/run/abstypetags_serialize.scala
index 6ec97105f..23211b134 100644
--- a/tests/pending/run/abstypetags_serialize.scala
+++ b/tests/pending/run/abstypetags_serialize.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(tag: WeakTypeTag[_]) =
try {
val fout = new ByteArrayOutputStream()
diff --git a/tests/pending/run/amp.scala b/tests/pending/run/amp.scala
index a1924ef63..da35242a9 100644
--- a/tests/pending/run/amp.scala
+++ b/tests/pending/run/amp.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo() = {
def f: Int = 1
diff --git a/tests/pending/run/applydynamic_sip.scala b/tests/pending/run/applydynamic_sip.scala
index cf918a82e..a163ab960 100644
--- a/tests/pending/run/applydynamic_sip.scala
+++ b/tests/pending/run/applydynamic_sip.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object stubUpdate {
def update(as: Any*) = println(".update"+as.toList.mkString("(",", ", ")"))
}
diff --git a/tests/pending/run/arrayclone-new.scala b/tests/pending/run/arrayclone-new.scala
index e9356de85..5f09cd73a 100644
--- a/tests/pending/run/arrayclone-new.scala
+++ b/tests/pending/run/arrayclone-new.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
BooleanArrayClone;
ByteArrayClone;
ShortArrayClone;
diff --git a/tests/pending/run/arrayclone-old.scala b/tests/pending/run/arrayclone-old.scala
index fbca38b42..d216e36f2 100644
--- a/tests/pending/run/arrayclone-old.scala
+++ b/tests/pending/run/arrayclone-old.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
BooleanArrayClone;
ByteArrayClone;
ShortArrayClone;
diff --git a/tests/pending/run/arybufgrow.scala b/tests/pending/run/arybufgrow.scala
index fba859a45..b0e06166b 100644
--- a/tests/pending/run/arybufgrow.scala
+++ b/tests/pending/run/arybufgrow.scala
@@ -1,6 +1,6 @@
import scala.collection.mutable._;
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val buf = new ArrayBuffer[String];
for (i <- List.range(0,1000)) {
buf += "hello";
diff --git a/tests/pending/run/bitsets.scala b/tests/pending/run/bitsets.scala
index 5d4922074..05c1625ed 100644
--- a/tests/pending/run/bitsets.scala
+++ b/tests/pending/run/bitsets.scala
@@ -206,7 +206,7 @@ object TestImmutable2 {
println
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
TestMutable
TestMutable2
TestMutable3
diff --git a/tests/pending/run/blame_eye_triple_eee-double.scala b/tests/pending/run/blame_eye_triple_eee-double.scala
index 1640aead4..406fc960a 100644
--- a/tests/pending/run/blame_eye_triple_eee-double.scala
+++ b/tests/pending/run/blame_eye_triple_eee-double.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Double.NaN
// NaN must not equal NaN no matter what optimizations are applied
diff --git a/tests/pending/run/blame_eye_triple_eee-float.scala b/tests/pending/run/blame_eye_triple_eee-float.scala
index 4deb9f3d6..e62461828 100644
--- a/tests/pending/run/blame_eye_triple_eee-float.scala
+++ b/tests/pending/run/blame_eye_triple_eee-float.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Float.NaN
// NaN must not equal NaN no matter what optimizations are applied
diff --git a/tests/pending/run/breakout.scala b/tests/pending/run/breakout.scala
index 8081405bd..a58191046 100644
--- a/tests/pending/run/breakout.scala
+++ b/tests/pending/run/breakout.scala
@@ -2,7 +2,7 @@ import scala.collection.generic._
import scala.collection._
import scala.collection.mutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val l = List(1, 2, 3)
val a: Array[Int] = l.map(_ + 1)(breakOut)
println(a.mkString(", "))
diff --git a/tests/pending/run/byname.scala b/tests/pending/run/byname.scala
index f776fc7a5..f825744c0 100644
--- a/tests/pending/run/byname.scala
+++ b/tests/pending/run/byname.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test[A](name: String, expect: A, actual: => A): Unit = {
if (expect != actual) throw new AssertionError("test " + name + " failed")
diff --git a/tests/pending/run/case-class-23.scala b/tests/pending/run/case-class-23.scala
index 92b719574..a6d78763c 100644
--- a/tests/pending/run/case-class-23.scala
+++ b/tests/pending/run/case-class-23.scala
@@ -24,7 +24,7 @@ case class TwentyThree(
_23: Int
)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = new TwentyThree(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
println(x._23)
assert(x.copy(_1 = 1) == x)
diff --git a/tests/pending/run/caseclasses.scala b/tests/pending/run/caseclasses.scala
index 668c984f3..f94bcab95 100644
--- a/tests/pending/run/caseclasses.scala
+++ b/tests/pending/run/caseclasses.scala
@@ -15,7 +15,7 @@ object M {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def Abs(x: Int) = new Abs(x * 2){}
Abs(2) match {
diff --git a/tests/pending/run/castsingleton.scala b/tests/pending/run/castsingleton.scala
index 339f5e00c..3f2b6fca5 100644
--- a/tests/pending/run/castsingleton.scala
+++ b/tests/pending/run/castsingleton.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class L();
object N extends L();
diff --git a/tests/pending/run/checked.scala b/tests/pending/run/checked.scala
index 711181e5f..a61547b81 100644
--- a/tests/pending/run/checked.scala
+++ b/tests/pending/run/checked.scala
@@ -101,7 +101,7 @@ override val x = 10
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def shouldThrow(t: => Unit) = try {
t
diff --git a/tests/pending/run/classmanifests_new_alias.scala b/tests/pending/run/classmanifests_new_alias.scala
index 777bd5dd6..38af0ede3 100644
--- a/tests/pending/run/classmanifests_new_alias.scala
+++ b/tests/pending/run/classmanifests_new_alias.scala
@@ -1,6 +1,6 @@
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
type CM[T] = ClassManifest[T]
println(implicitly[CM[Int]])
println(implicitly[CM[Int]] eq Manifest.Int)
diff --git a/tests/pending/run/classmanifests_new_core.scala b/tests/pending/run/classmanifests_new_core.scala
index 0a9c58e8e..a916b750c 100644
--- a/tests/pending/run/classmanifests_new_core.scala
+++ b/tests/pending/run/classmanifests_new_core.scala
@@ -1,5 +1,5 @@
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[Int])
println(classManifest[Int] eq Manifest.Int)
}
diff --git a/tests/pending/run/classtags_contextbound.scala b/tests/pending/run/classtags_contextbound.scala
index a3cfb2b9e..1edce82a2 100644
--- a/tests/pending/run/classtags_contextbound.scala
+++ b/tests/pending/run/classtags_contextbound.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def mkArray[T: ClassTag] = Array[T]()
def foo[T: ClassTag] = mkArray[T]
println(foo[Int].getClass)
diff --git a/tests/pending/run/classtags_core.scala b/tests/pending/run/classtags_core.scala
index 0a9fc4a31..a30652d5f 100644
--- a/tests/pending/run/classtags_core.scala
+++ b/tests/pending/run/classtags_core.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[ClassTag[Byte]] eq ClassTag.Byte)
println(implicitly[ClassTag[Byte]])
println(implicitly[ClassTag[Short]] eq ClassTag.Short)
diff --git a/tests/pending/run/classtags_multi.scala b/tests/pending/run/classtags_multi.scala
index ee9481be3..19f6aa773 100644
--- a/tests/pending/run/classtags_multi.scala
+++ b/tests/pending/run/classtags_multi.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classTag[Int])
println(classTag[Array[Int]])
println(classTag[Array[Array[Int]]])
diff --git a/tests/pending/run/collection-stacks.scala b/tests/pending/run/collection-stacks.scala
index ed627640d..a41bef37c 100644
--- a/tests/pending/run/collection-stacks.scala
+++ b/tests/pending/run/collection-stacks.scala
@@ -1,6 +1,6 @@
import scala.collection.{ immutable, mutable }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def mutableStack[T](xs: T*): mutable.Stack[T] = {
val s = new mutable.Stack[T]
s.pushAll(xs)
diff --git a/tests/pending/run/collections.scala b/tests/pending/run/collections.scala
index 206a2b96b..acc2d93ff 100644
--- a/tests/pending/run/collections.scala
+++ b/tests/pending/run/collections.scala
@@ -2,7 +2,7 @@ import scala.collection._
import scala.compat.Platform.currentTime
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val printTime = false
diff --git a/tests/pending/run/colltest.scala b/tests/pending/run/colltest.scala
index 46e0c8478..3f9ff3ba7 100644
--- a/tests/pending/run/colltest.scala
+++ b/tests/pending/run/colltest.scala
@@ -45,7 +45,7 @@ class TestSet(s0: Set[Int], s1: Set[Int]) {
}
Console.println("succeeded for "+Iterations+" iterations.")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def t3954: Unit = {
import scala.collection.mutable
import scala.collection.immutable
diff --git a/tests/pending/run/colltest1.scala b/tests/pending/run/colltest1.scala
index 188909fb8..3f1fe5530 100644
--- a/tests/pending/run/colltest1.scala
+++ b/tests/pending/run/colltest1.scala
@@ -4,7 +4,7 @@
import scala.collection._
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def orderedTraversableTest(empty: Traversable[Int]): Unit = {
println("new test starting with "+empty)
diff --git a/tests/pending/run/complicatedmatch.scala b/tests/pending/run/complicatedmatch.scala
index 681029aa1..7a7438445 100644
--- a/tests/pending/run/complicatedmatch.scala
+++ b/tests/pending/run/complicatedmatch.scala
@@ -6,7 +6,7 @@ object Even{
def unapply(x : Int) = if (x % 2 == 0) Some(x / 2) else None;
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val LongWord = "supercalifragilisticexpialadocious";
def foo(x : Int, y : String) : Int = (x, y) match {
diff --git a/tests/pending/run/constant-optimization.scala b/tests/pending/run/constant-optimization.scala
index d7d59f802..83cabf856 100644
--- a/tests/pending/run/constant-optimization.scala
+++ b/tests/pending/run/constant-optimization.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testBothReachable(): Unit = {
val i = util.Random.nextInt
val x = if (i % 2 == 0) null else "good"
diff --git a/tests/pending/run/contrib674.scala b/tests/pending/run/contrib674.scala
index bb9dad368..fe7ebcccd 100644
--- a/tests/pending/run/contrib674.scala
+++ b/tests/pending/run/contrib674.scala
@@ -1,6 +1,6 @@
// causes VerifyError with scala-2.5.1
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bad(): Unit = {
try {
1
diff --git a/tests/pending/run/delambdafyLambdaClassNames/Test.scala b/tests/pending/run/delambdafyLambdaClassNames/Test.scala
index 49a397d1d..92a3d621c 100644
--- a/tests/pending/run/delambdafyLambdaClassNames/Test.scala
+++ b/tests/pending/run/delambdafyLambdaClassNames/Test.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = Class.forName("A$$nestedInAnon$1$lambda$$run$1")
println(c.getName)
}
diff --git a/tests/pending/run/deprecate-early-type-defs.scala b/tests/pending/run/deprecate-early-type-defs.scala
index e5d56e5f8..e617ee54f 100644
--- a/tests/pending/run/deprecate-early-type-defs.scala
+++ b/tests/pending/run/deprecate-early-type-defs.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// TODO NEEDS MANUAL CHANGE (early initializers)
// BEGIN copied early initializers
type T = Int
diff --git a/tests/pending/run/duration-coarsest.scala b/tests/pending/run/duration-coarsest.scala
index 21d35c9b2..229b7960b 100644
--- a/tests/pending/run/duration-coarsest.scala
+++ b/tests/pending/run/duration-coarsest.scala
@@ -1,7 +1,7 @@
import scala.concurrent.duration._
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List(
(60 minutes, 1 hour),
(2000 millis, 2 seconds),
diff --git a/tests/pending/run/enrich-gentraversable.scala b/tests/pending/run/enrich-gentraversable.scala
index 7d8b6bdb3..0a4ef9c5e 100644
--- a/tests/pending/run/enrich-gentraversable.scala
+++ b/tests/pending/run/enrich-gentraversable.scala
@@ -1,7 +1,7 @@
import scala.language.implicitConversions
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.{GenTraversableOnce,GenTraversableLike}
import scala.collection.generic._
diff --git a/tests/pending/run/exc.scala b/tests/pending/run/exc.scala
index 6457af1e1..be999794a 100644
--- a/tests/pending/run/exc.scala
+++ b/tests/pending/run/exc.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo() = {
while (true) {
try {
diff --git a/tests/pending/run/exc1.scala b/tests/pending/run/exc1.scala
index 9008f9d14..c48b4c156 100644
--- a/tests/pending/run/exc1.scala
+++ b/tests/pending/run/exc1.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(): Unit = {
while (true) {
try {
diff --git a/tests/pending/run/exc2.scala b/tests/pending/run/exc2.scala
index bb41f5286..4075cb26f 100644
--- a/tests/pending/run/exc2.scala
+++ b/tests/pending/run/exc2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo() = {
while (true) {
try {
diff --git a/tests/pending/run/exceptions-nest.scala b/tests/pending/run/exceptions-nest.scala
index 4543faae6..87586485c 100644
--- a/tests/pending/run/exceptions-nest.scala
+++ b/tests/pending/run/exceptions-nest.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(test1)
println(test2)
diff --git a/tests/pending/run/existentials.scala b/tests/pending/run/existentials.scala
index d900e7ad9..6aa4697cd 100644
--- a/tests/pending/run/existentials.scala
+++ b/tests/pending/run/existentials.scala
@@ -53,7 +53,7 @@ object Bug1189 {
println(f(x))
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = { class I; class J; (new C(new I), new C(new J)) }
val y: (C[X], C[Y]) forSome { type X; type Y }(C[X], C[Y]) forSome { type X; type Y } = x
diff --git a/tests/pending/run/exoticnames.scala b/tests/pending/run/exoticnames.scala
index 98f9a8877..beaea15b1 100644
--- a/tests/pending/run/exoticnames.scala
+++ b/tests/pending/run/exoticnames.scala
@@ -1,5 +1,5 @@
// this is a run-test because the compiler should emit bytecode that'll pass the JVM's verifier
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def `(` = sys.error("bla")
def `.` = sys.error("bla")
def `)` = sys.error("bla")
diff --git a/tests/pending/run/exprs_serialize.scala b/tests/pending/run/exprs_serialize.scala
index 91027803b..85cf55e1c 100644
--- a/tests/pending/run/exprs_serialize.scala
+++ b/tests/pending/run/exprs_serialize.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(expr: Expr[_]) =
try {
val fout = new ByteArrayOutputStream()
diff --git a/tests/pending/run/finally.scala b/tests/pending/run/finally.scala
index 92832165d..64324abc4 100644
--- a/tests/pending/run/finally.scala
+++ b/tests/pending/run/finally.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test that finally is not covered by any exception handlers.
diff --git a/tests/pending/run/fors.scala b/tests/pending/run/fors.scala
index 02b513755..1de164029 100644
--- a/tests/pending/run/fors.scala
+++ b/tests/pending/run/fors.scala
@@ -4,7 +4,7 @@
//############################################################################
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val xs = List(1, 2, 3)
val ys = List('a, 'b, 'c)
diff --git a/tests/pending/run/freetypes_false_alarm1.scala b/tests/pending/run/freetypes_false_alarm1.scala
index e9396f3f0..b06e10efe 100644
--- a/tests/pending/run/freetypes_false_alarm1.scala
+++ b/tests/pending/run/freetypes_false_alarm1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val ru = scala.reflect.runtime.universe
val tpe: ru.Type = ru.typeOf[List[Int]]
diff --git a/tests/pending/run/freetypes_false_alarm2.scala b/tests/pending/run/freetypes_false_alarm2.scala
index 4b6633fa2..6e6fd4c9c 100644
--- a/tests/pending/run/freetypes_false_alarm2.scala
+++ b/tests/pending/run/freetypes_false_alarm2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.tools.reflect.Eval
import internal._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tpe = typeOf[ru.Type]
println(isFreeType(tpe.typeSymbol))
}
diff --git a/tests/pending/run/gadts.scala b/tests/pending/run/gadts.scala
index 57c7fc8af..7413df119 100644
--- a/tests/pending/run/gadts.scala
+++ b/tests/pending/run/gadts.scala
@@ -6,7 +6,7 @@ case class If[T](c: Term[Boolean],
t1: Term[T],
t2: Term[T]) extends Term[T]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def eval[T](t: Term[T]): T = t match {
case Lit(n) => n
case Succ(u) => eval(u) + 1
diff --git a/tests/pending/run/genericValueClass.scala b/tests/pending/run/genericValueClass.scala
index 9398390a8..5873eace1 100644
--- a/tests/pending/run/genericValueClass.scala
+++ b/tests/pending/run/genericValueClass.scala
@@ -1,7 +1,7 @@
import scala.language.implicitConversions
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class ArrowAssocClass[A](val __leftOfArrow: A) extends AnyVal {
@inline def -> [B](y: B): Tuple2[A, B] = Tuple2(__leftOfArrow, y)
def →[B](y: B): Tuple2[A, B] = ->(y)
diff --git a/tests/pending/run/hashset.scala b/tests/pending/run/hashset.scala
index 624ca2a52..0c305142b 100644
--- a/tests/pending/run/hashset.scala
+++ b/tests/pending/run/hashset.scala
@@ -4,7 +4,7 @@ import scala.collection.mutable.FlatHashTable
import scala.collection.mutable.HashSet
import scala.collection.parallel.mutable.ParHashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
test(new Creator{
def create[A] = new HashSet[A]
def hashSetType = "HashSet"
diff --git a/tests/pending/run/hashsetremove.scala b/tests/pending/run/hashsetremove.scala
index 1cfb5ed63..e47269a96 100644
--- a/tests/pending/run/hashsetremove.scala
+++ b/tests/pending/run/hashsetremove.scala
@@ -1,7 +1,7 @@
import scala.collection.mutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val h = new HashSet[Int]
h += 1
println(s"remove 0 should be false, was ${h remove 0}")
diff --git a/tests/pending/run/idempotency-case-classes.scala b/tests/pending/run/idempotency-case-classes.scala
index b4938c489..8c2aa70dc 100644
--- a/tests/pending/run/idempotency-case-classes.scala
+++ b/tests/pending/run/idempotency-case-classes.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val casee = reify {
case class C(x: Int, y: Int)
println(C(2, 3))
diff --git a/tests/pending/run/idempotency-extractors.scala b/tests/pending/run/idempotency-extractors.scala
index 3e5782c8a..f5d6cd193 100644
--- a/tests/pending/run/idempotency-extractors.scala
+++ b/tests/pending/run/idempotency-extractors.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object Extractor { def unapply(x: Int): Option[Int] = Some(x) }
val extractor = reify {
2 match { case Extractor(x) => x }
diff --git a/tests/pending/run/idempotency-labels.scala b/tests/pending/run/idempotency-labels.scala
index 85c5b6111..126063384 100644
--- a/tests/pending/run/idempotency-labels.scala
+++ b/tests/pending/run/idempotency-labels.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val label = reify {
var x = 0
while (x < 2) { x += 1 }
diff --git a/tests/pending/run/idempotency-lazy-vals.scala b/tests/pending/run/idempotency-lazy-vals.scala
index c440c2189..cb757f1ab 100644
--- a/tests/pending/run/idempotency-lazy-vals.scala
+++ b/tests/pending/run/idempotency-lazy-vals.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val lazee = reify {
class C {
lazy val x = 2
diff --git a/tests/pending/run/idempotency-this.scala b/tests/pending/run/idempotency-this.scala
index 1bd71d847..2e2f7cf66 100644
--- a/tests/pending/run/idempotency-this.scala
+++ b/tests/pending/run/idempotency-this.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val thiss = reify {
List[String]("")
}
diff --git a/tests/pending/run/implicitclasses.scala b/tests/pending/run/implicitclasses.scala
index 886d4dede..fefb69591 100644
--- a/tests/pending/run/implicitclasses.scala
+++ b/tests/pending/run/implicitclasses.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit class C(s: String) {
def nElems = s.length
diff --git a/tests/pending/run/implicits.scala b/tests/pending/run/implicits.scala
index fbc8536c0..60a361a44 100644
--- a/tests/pending/run/implicits.scala
+++ b/tests/pending/run/implicits.scala
@@ -17,7 +17,7 @@ class C(x: String) {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import A.B._
val c = new C("OK")
val i = new c.Inner
diff --git a/tests/pending/run/indexedSeq-apply.scala b/tests/pending/run/indexedSeq-apply.scala
index 39d4db2ce..455218d2c 100644
--- a/tests/pending/run/indexedSeq-apply.scala
+++ b/tests/pending/run/indexedSeq-apply.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val empty = IndexedSeq()
assert(empty.isEmpty)
diff --git a/tests/pending/run/infiniteloop.scala b/tests/pending/run/infiniteloop.scala
index 57cfa8d37..2668d5b00 100644
--- a/tests/pending/run/infiniteloop.scala
+++ b/tests/pending/run/infiniteloop.scala
@@ -1,6 +1,6 @@
/** Tests the optimiser (not to loop on 'reverse'). */
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo: Unit = {
val s3 = Stream.range(1, 1000) //100000 (ticket #153: Stackoverflow)
diff --git a/tests/pending/run/infix.scala b/tests/pending/run/infix.scala
index a867d03ce..6b754f2f0 100644
--- a/tests/pending/run/infix.scala
+++ b/tests/pending/run/infix.scala
@@ -2,7 +2,7 @@ case class op(x: op, y: Int, z: Int) {
def op(y: Int, z: Int) = new op(this, y, z)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val xs = new op(null, 0, 0) op (1, 1) op (2, 2)
Console.println(xs)
xs match {
diff --git a/tests/pending/run/inliner-infer.scala b/tests/pending/run/inliner-infer.scala
index e41d6ae5c..6a2e47194 100644
--- a/tests/pending/run/inliner-infer.scala
+++ b/tests/pending/run/inliner-infer.scala
@@ -3,7 +3,7 @@
/** Test that the inliner is not inferring that `xs' is
* always Nil, removing the call to isEmpty.
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
@annotation.tailrec
def walk(xs: MyList): Unit = {
diff --git a/tests/pending/run/interop_classtags_are_classmanifests.scala b/tests/pending/run/interop_classtags_are_classmanifests.scala
index 62d85c3ce..77b6bbbab 100644
--- a/tests/pending/run/interop_classtags_are_classmanifests.scala
+++ b/tests/pending/run/interop_classtags_are_classmanifests.scala
@@ -1,7 +1,7 @@
import scala.reflect.ClassTag
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def classTagIsClassManifest[T: ClassTag] = {
println(classManifest[T])
}
diff --git a/tests/pending/run/interop_manifests_are_abstypetags.scala b/tests/pending/run/interop_manifests_are_abstypetags.scala
index e864aec10..5dbfdc969 100644
--- a/tests/pending/run/interop_manifests_are_abstypetags.scala
+++ b/tests/pending/run/interop_manifests_are_abstypetags.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def manifestIsWeakTypeTag[T: Manifest] = {
println(implicitly[WeakTypeTag[T]].tpe)
}
diff --git a/tests/pending/run/interop_manifests_are_classtags.scala b/tests/pending/run/interop_manifests_are_classtags.scala
index 705038ece..195fac9d9 100644
--- a/tests/pending/run/interop_manifests_are_classtags.scala
+++ b/tests/pending/run/interop_manifests_are_classtags.scala
@@ -1,7 +1,7 @@
import scala.reflect.{ClassTag, classTag}
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def classManifestIsClassTag[T: ClassManifest] = {
println(classTag[T])
println(Array[T]().toList)
diff --git a/tests/pending/run/interop_manifests_are_typetags.scala b/tests/pending/run/interop_manifests_are_typetags.scala
index a228e7017..dd20c1719 100644
--- a/tests/pending/run/interop_manifests_are_typetags.scala
+++ b/tests/pending/run/interop_manifests_are_typetags.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def manifestIsTypeTag[T: Manifest] = {
println(typeOf[T])
}
diff --git a/tests/pending/run/interop_typetags_are_manifests.scala b/tests/pending/run/interop_typetags_are_manifests.scala
index 071c3ff25..5f5781323 100644
--- a/tests/pending/run/interop_typetags_are_manifests.scala
+++ b/tests/pending/run/interop_typetags_are_manifests.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
import internal._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def typeTagIsManifest[T: TypeTag : ClassTag] = {
println(manifest[T])
}
diff --git a/tests/pending/run/interpolation.scala b/tests/pending/run/interpolation.scala
index 14d981934..42ac3057e 100644
--- a/tests/pending/run/interpolation.scala
+++ b/tests/pending/run/interpolation.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test1(n: Int) = {
println(s"Bob is $n years old")
diff --git a/tests/pending/run/interpolationArgs.scala b/tests/pending/run/interpolationArgs.scala
index ffb254b63..f4e41557a 100644
--- a/tests/pending/run/interpolationArgs.scala
+++ b/tests/pending/run/interpolationArgs.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try { scala.StringContext("p1", "p2", "p3").s("e1") } catch { case ex: Throwable => println(ex) }
try { scala.StringContext("p1").s("e1") } catch { case ex: Throwable => println(ex) }
}
diff --git a/tests/pending/run/interpolationMultiline1.scala b/tests/pending/run/interpolationMultiline1.scala
index db634e777..522628256 100644
--- a/tests/pending/run/interpolationMultiline1.scala
+++ b/tests/pending/run/interpolationMultiline1.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test1(n: Int) = {
println(s"""Bob is $n years old""")
diff --git a/tests/pending/run/interpolationMultiline2.scala b/tests/pending/run/interpolationMultiline2.scala
index 2de4c4b22..e750c0a55 100644
--- a/tests/pending/run/interpolationMultiline2.scala
+++ b/tests/pending/run/interpolationMultiline2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test1(n: Int) = {
val old = "old"
diff --git a/tests/pending/run/intmap.scala b/tests/pending/run/intmap.scala
index c5f8d7d3d..593714e2f 100644
--- a/tests/pending/run/intmap.scala
+++ b/tests/pending/run/intmap.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
import scala.collection.immutable.IntMap;
val it = IntMap(8 -> 2, 11 -> 3, 1 -> 2, 7 -> 13);
diff --git a/tests/pending/run/issue192.scala b/tests/pending/run/issue192.scala
index 8e6d13e5e..b00a35917 100644
--- a/tests/pending/run/issue192.scala
+++ b/tests/pending/run/issue192.scala
@@ -1,6 +1,6 @@
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def f1(p: Any{def unary_+ : Int}) = +p
def f2(p: Any{def unary_- : Int}) = -p
diff --git a/tests/pending/run/iterables.scala b/tests/pending/run/iterables.scala
index ad30f4731..251722982 100644
--- a/tests/pending/run/iterables.scala
+++ b/tests/pending/run/iterables.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Test(n: Int) extends Iterable[Int] {
private var i = 0
def iterator = new Iterator[Int] {
diff --git a/tests/pending/run/iterator-from.scala b/tests/pending/run/iterator-from.scala
index 9307043d8..4f403680c 100644
--- a/tests/pending/run/iterator-from.scala
+++ b/tests/pending/run/iterator-from.scala
@@ -6,7 +6,7 @@ import scala.util.{Random => R}
import scala.collection._
import scala.math.Ordered
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val maxLength = 25
val maxKey = 50
val maxValue = 50
diff --git a/tests/pending/run/lazy-exprs.scala b/tests/pending/run/lazy-exprs.scala
index c1800f2c6..3ba6b46ab 100644
--- a/tests/pending/run/lazy-exprs.scala
+++ b/tests/pending/run/lazy-exprs.scala
@@ -89,7 +89,7 @@ object TestExpressions {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
TestExpressions.test
}
diff --git a/tests/pending/run/lazy-leaks.scala b/tests/pending/run/lazy-leaks.scala
index 22a3770d0..6e5aa41f1 100644
--- a/tests/pending/run/lazy-leaks.scala
+++ b/tests/pending/run/lazy-leaks.scala
@@ -2,7 +2,7 @@ class Lazy(f: => Int) {
lazy val get: Int = f
}
-object Test extends App
+object Test extends dotty.runtime.LegacyApp
{
val buffer = new scala.collection.mutable.ListBuffer[Lazy]
diff --git a/tests/pending/run/lazy-locals.scala b/tests/pending/run/lazy-locals.scala
index e21a94e72..cc994513a 100644
--- a/tests/pending/run/lazy-locals.scala
+++ b/tests/pending/run/lazy-locals.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
lazy val w = 10
diff --git a/tests/pending/run/lazy-override-run.scala b/tests/pending/run/lazy-override-run.scala
index 6016c3c8b..3e00f31ef 100644
--- a/tests/pending/run/lazy-override-run.scala
+++ b/tests/pending/run/lazy-override-run.scala
@@ -13,7 +13,7 @@ class B extends A {
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = new A
print("a.x=")
println(a.x)
diff --git a/tests/pending/run/lazy-traits.scala b/tests/pending/run/lazy-traits.scala
index c7b6790db..89e262824 100644
--- a/tests/pending/run/lazy-traits.scala
+++ b/tests/pending/run/lazy-traits.scala
@@ -153,7 +153,7 @@ class MixedUnitLazy extends UnitLazy with UnitLazyT {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(name: String, v: A): Unit = {
println(name + " test:")
diff --git a/tests/pending/run/longmap.scala b/tests/pending/run/longmap.scala
index 1f18eebd3..b67fc75f1 100644
--- a/tests/pending/run/longmap.scala
+++ b/tests/pending/run/longmap.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
import scala.collection.immutable.LongMap;
val it = LongMap(8L -> 2, 11L -> 3, 1L -> 2, 7L -> 13);
diff --git a/tests/pending/run/macro-abort-fresh/Test_2.scala b/tests/pending/run/macro-abort-fresh/Test_2.scala
index 61f0bdfad..dea6e6d62 100644
--- a/tests/pending/run/macro-abort-fresh/Test_2.scala
+++ b/tests/pending/run/macro-abort-fresh/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-auto-duplicate/Test_2.scala b/tests/pending/run/macro-auto-duplicate/Test_2.scala
index f697da602..eed62a0fe 100644
--- a/tests/pending/run/macro-auto-duplicate/Test_2.scala
+++ b/tests/pending/run/macro-auto-duplicate/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-basic-ma-md-mi/Test_3.scala b/tests/pending/run/macro-basic-ma-md-mi/Test_3.scala
index e9a10e20c..9c45f59d7 100644
--- a/tests/pending/run/macro-basic-ma-md-mi/Test_3.scala
+++ b/tests/pending/run/macro-basic-ma-md-mi/Test_3.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros.Shmacros._
println(foo(2) + Macros.bar(2) * new Macros().quux(4))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-basic-ma-mdmi/Test_2.scala b/tests/pending/run/macro-basic-ma-mdmi/Test_2.scala
index e9a10e20c..9c45f59d7 100644
--- a/tests/pending/run/macro-basic-ma-mdmi/Test_2.scala
+++ b/tests/pending/run/macro-basic-ma-mdmi/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros.Shmacros._
println(foo(2) + Macros.bar(2) * new Macros().quux(4))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-basic-mamd-mi/Macros_Test_2.scala b/tests/pending/run/macro-basic-mamd-mi/Macros_Test_2.scala
index d3746894f..9bfcbc4a7 100644
--- a/tests/pending/run/macro-basic-mamd-mi/Macros_Test_2.scala
+++ b/tests/pending/run/macro-basic-mamd-mi/Macros_Test_2.scala
@@ -9,7 +9,7 @@ class Macros {
def quux(x: Int): Int = macro Impls.quux
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros.Shmacros._
println(foo(2) + Macros.bar(2) * new Macros().quux(4))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-blackbox-materialization/Test_2.scala b/tests/pending/run/macro-blackbox-materialization/Test_2.scala
index 001ff9aea..1f0413bdf 100644
--- a/tests/pending/run/macro-blackbox-materialization/Test_2.scala
+++ b/tests/pending/run/macro-blackbox-materialization/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[C[Int]])
println(implicitly[C[String]])
println(implicitly[C[Nothing]])
diff --git a/tests/pending/run/macro-bodyexpandstoimpl/Macros_Test_2.scala b/tests/pending/run/macro-bodyexpandstoimpl/Macros_Test_2.scala
index 486e1de09..f0fe4a8e3 100644
--- a/tests/pending/run/macro-bodyexpandstoimpl/Macros_Test_2.scala
+++ b/tests/pending/run/macro-bodyexpandstoimpl/Macros_Test_2.scala
@@ -4,7 +4,7 @@ object Macros {
def foo(x: Int): Int = macro Impls.refToFoo(42)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println(foo(42))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-bundle-context-alias/Test_2.scala b/tests/pending/run/macro-bundle-context-alias/Test_2.scala
index de499cc11..6c70277de 100644
--- a/tests/pending/run/macro-bundle-context-alias/Test_2.scala
+++ b/tests/pending/run/macro-bundle-context-alias/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(new C().blackbox)
println(new C().refinedBlackbox)
println(new C().whitebox)
diff --git a/tests/pending/run/macro-bundle-context-refinement/Test_2.scala b/tests/pending/run/macro-bundle-context-refinement/Test_2.scala
index 43d641ade..d631b8f7e 100644
--- a/tests/pending/run/macro-bundle-context-refinement/Test_2.scala
+++ b/tests/pending/run/macro-bundle-context-refinement/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(new C().blackbox)
println(new C().whitebox)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-bundle-static/Test_2.scala b/tests/pending/run/macro-bundle-static/Test_2.scala
index e35260cdc..cfc1e1563 100644
--- a/tests/pending/run/macro-bundle-static/Test_2.scala
+++ b/tests/pending/run/macro-bundle-static/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.mono)
println(Macros.poly[Int])
println(new Enclosing.Impl(???).weird)
diff --git a/tests/pending/run/macro-bundle-toplevel/Test_2.scala b/tests/pending/run/macro-bundle-toplevel/Test_2.scala
index 195fb4926..013baa348 100644
--- a/tests/pending/run/macro-bundle-toplevel/Test_2.scala
+++ b/tests/pending/run/macro-bundle-toplevel/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.mono)
println(Macros.poly[Int])
println(new Impl(???).weird)
diff --git a/tests/pending/run/macro-bundle-whitebox-decl/Test_2.scala b/tests/pending/run/macro-bundle-whitebox-decl/Test_2.scala
index 195fb4926..013baa348 100644
--- a/tests/pending/run/macro-bundle-whitebox-decl/Test_2.scala
+++ b/tests/pending/run/macro-bundle-whitebox-decl/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.mono)
println(Macros.poly[Int])
println(new Impl(???).weird)
diff --git a/tests/pending/run/macro-bundle-whitebox-use-raw/Test_2.scala b/tests/pending/run/macro-bundle-whitebox-use-raw/Test_2.scala
index 3a8170025..b28ebfd71 100644
--- a/tests/pending/run/macro-bundle-whitebox-use-raw/Test_2.scala
+++ b/tests/pending/run/macro-bundle-whitebox-use-raw/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(ReturnTypeRefinement.foo.x)
case class Foo(i: Int, s: String, b: Boolean)
diff --git a/tests/pending/run/macro-bundle-whitebox-use-refined/Test_2.scala b/tests/pending/run/macro-bundle-whitebox-use-refined/Test_2.scala
index 3a8170025..b28ebfd71 100644
--- a/tests/pending/run/macro-bundle-whitebox-use-refined/Test_2.scala
+++ b/tests/pending/run/macro-bundle-whitebox-use-refined/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(ReturnTypeRefinement.foo.x)
case class Foo(i: Int, s: String, b: Boolean)
diff --git a/tests/pending/run/macro-def-path-dependent/Dummy.scala b/tests/pending/run/macro-def-path-dependent/Dummy.scala
index 7dffc5107..2ccaa3940 100644
--- a/tests/pending/run/macro-def-path-dependent/Dummy.scala
+++ b/tests/pending/run/macro-def-path-dependent/Dummy.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("it works")
} \ No newline at end of file
diff --git a/tests/pending/run/macro-default-params/Test_2.scala b/tests/pending/run/macro-default-params/Test_2.scala
index 5d19639cd..d75fbd0db 100644
--- a/tests/pending/run/macro-default-params/Test_2.scala
+++ b/tests/pending/run/macro-default-params/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
}
diff --git a/tests/pending/run/macro-divergence-spurious/Test_2.scala b/tests/pending/run/macro-divergence-spurious/Test_2.scala
index dcc459333..0a9820701 100644
--- a/tests/pending/run/macro-divergence-spurious/Test_2.scala
+++ b/tests/pending/run/macro-divergence-spurious/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[Complex[Foo]])
} \ No newline at end of file
diff --git a/tests/pending/run/macro-duplicate/Test_2.scala b/tests/pending/run/macro-duplicate/Test_2.scala
index 6dbd4382d..8706883b4 100644
--- a/tests/pending/run/macro-duplicate/Test_2.scala
+++ b/tests/pending/run/macro-duplicate/Test_2.scala
@@ -1,6 +1,6 @@
import scala.concurrent._
import ExecutionContext.Implicits.global
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-enclosingowner-detectvar/Test_2.scala b/tests/pending/run/macro-enclosingowner-detectvar/Test_2.scala
index 58521d942..edc0eb654 100644
--- a/tests/pending/run/macro-enclosingowner-detectvar/Test_2.scala
+++ b/tests/pending/run/macro-enclosingowner-detectvar/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a1 = Macros.foo
val a2 = Predef.identity(Predef.identity(Macros.foo))
val a3: Int = Macros.foo
diff --git a/tests/pending/run/macro-enclosingowner-sbt/Test_2.scala b/tests/pending/run/macro-enclosingowner-sbt/Test_2.scala
index 58521d942..edc0eb654 100644
--- a/tests/pending/run/macro-enclosingowner-sbt/Test_2.scala
+++ b/tests/pending/run/macro-enclosingowner-sbt/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a1 = Macros.foo
val a2 = Predef.identity(Predef.identity(Macros.foo))
val a3: Int = Macros.foo
diff --git a/tests/pending/run/macro-enclosures/Test_2.scala b/tests/pending/run/macro-enclosures/Test_2.scala
index 779fe5211..8b8dc10cd 100644
--- a/tests/pending/run/macro-enclosures/Test_2.scala
+++ b/tests/pending/run/macro-enclosures/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
test.Test.test
}
diff --git a/tests/pending/run/macro-expand-implicit-argument/Test_2.scala b/tests/pending/run/macro-expand-implicit-argument/Test_2.scala
index ce8a068fb..edb1de413 100644
--- a/tests/pending/run/macro-expand-implicit-argument/Test_2.scala
+++ b/tests/pending/run/macro-expand-implicit-argument/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println(array(1, 2, 3).toList)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-implicit-macro-has-implicit/Macros_Test_2.scala b/tests/pending/run/macro-expand-implicit-macro-has-implicit/Macros_Test_2.scala
index fec914632..2f5648758 100644
--- a/tests/pending/run/macro-expand-implicit-macro-has-implicit/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-implicit-macro-has-implicit/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit val x = 42
def foo(implicit x: Int): Unit = macro Impls.foo
foo
diff --git a/tests/pending/run/macro-expand-implicit-macro-is-implicit/Macros_Test_2.scala b/tests/pending/run/macro-expand-implicit-macro-is-implicit/Macros_Test_2.scala
index 22047eeb3..8f0fbe60e 100644
--- a/tests/pending/run/macro-expand-implicit-macro-is-implicit/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-implicit-macro-is-implicit/Macros_Test_2.scala
@@ -3,7 +3,7 @@ object Macros {
implicit def foo(x: String): Option[Int] = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println("2": Option[Int])
val s: Int = "2" getOrElse 0
diff --git a/tests/pending/run/macro-expand-implicit-macro-is-val/Macros_Test_2.scala b/tests/pending/run/macro-expand-implicit-macro-is-val/Macros_Test_2.scala
index 2f21785ba..3b851de05 100644
--- a/tests/pending/run/macro-expand-implicit-macro-is-val/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-implicit-macro-is-val/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit def foo: Int = macro Impls.foo
def bar(implicit x: Int) = println(x)
bar
diff --git a/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala b/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala
index 0d99f32d7..c7b09435a 100644
--- a/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala
@@ -5,7 +5,7 @@ object Macros {
implicit def foo(x: String): Option[Int] = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
def bar[T <% Option[Int]](x: T) = println(x)
println("2")
diff --git a/tests/pending/run/macro-expand-multiple-arglists/Macros_Test_2.scala b/tests/pending/run/macro-expand-multiple-arglists/Macros_Test_2.scala
index 54b959983..09de5e02f 100644
--- a/tests/pending/run/macro-expand-multiple-arglists/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-multiple-arglists/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(x: Int)(y: Int): Unit = macro Impls.foo
foo(40)(2)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-nullary-generic/Macros_Test_2.scala b/tests/pending/run/macro-expand-nullary-generic/Macros_Test_2.scala
index edd905175..da418c63c 100644
--- a/tests/pending/run/macro-expand-nullary-generic/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-nullary-generic/Macros_Test_2.scala
@@ -5,7 +5,7 @@ object Macros {
def bar2[T](x: Int)(): Unit = macro Impls.barEmpty[T]
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo1[Int]
Macros.foo2[Int]
Macros.foo2[Int]()
diff --git a/tests/pending/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala b/tests/pending/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala
index 51915dfb2..a14d981ce 100644
--- a/tests/pending/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala
@@ -5,7 +5,7 @@ object Macros {
def bar2(x: Int)(): Unit = macro Impls.barEmpty
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo1
Macros.foo2
Macros.foo2()
diff --git a/tests/pending/run/macro-expand-overload/Macros_Test_2.scala b/tests/pending/run/macro-expand-overload/Macros_Test_2.scala
index 87cff2ecb..b367f35b7 100644
--- a/tests/pending/run/macro-expand-overload/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-overload/Macros_Test_2.scala
@@ -10,7 +10,7 @@ class Macros {
def foo(x: Boolean): Unit = println("fooClassBoolean")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo("42")
Macros.foo(42)
Macros.foo(true)
diff --git a/tests/pending/run/macro-expand-override/Macros_Test_2.scala b/tests/pending/run/macro-expand-override/Macros_Test_2.scala
index 160831c54..46c1f49cc 100644
--- a/tests/pending/run/macro-expand-override/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-override/Macros_Test_2.scala
@@ -14,7 +14,7 @@ class Z extends D {
override def foo(x: Boolean): Unit = println("fooZBoolean")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val dd: D = new D()
dd.foo("42")
diff --git a/tests/pending/run/macro-expand-recursive/Macros_Test_2.scala b/tests/pending/run/macro-expand-recursive/Macros_Test_2.scala
index 5332fdace..e8a88afc9 100644
--- a/tests/pending/run/macro-expand-recursive/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-recursive/Macros_Test_2.scala
@@ -3,6 +3,6 @@ object Macros {
def fooFoo: Unit = macro Impls.fooFoo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.fooFoo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-tparams-bounds/Macros_Test_2.scala b/tests/pending/run/macro-expand-tparams-bounds/Macros_Test_2.scala
index 6cb2b5346..f1cab82ec 100644
--- a/tests/pending/run/macro-expand-tparams-bounds/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-tparams-bounds/Macros_Test_2.scala
@@ -6,7 +6,7 @@ object Macros2 {
def foo[T <: D]: Unit = macro Impls2.foo[T]
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros1.foo[String]
Macros2.foo[D]
}
diff --git a/tests/pending/run/macro-expand-tparams-explicit/Macros_Test_2.scala b/tests/pending/run/macro-expand-tparams-explicit/Macros_Test_2.scala
index 2cf7b19d2..14154ee03 100644
--- a/tests/pending/run/macro-expand-tparams-explicit/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-tparams-explicit/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[U]: Unit = macro Impls.foo[U]
foo[Int]
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-tparams-implicit/Macros_Test_2.scala b/tests/pending/run/macro-expand-tparams-implicit/Macros_Test_2.scala
index 119293193..386817469 100644
--- a/tests/pending/run/macro-expand-tparams-implicit/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-tparams-implicit/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[U](x: U): Unit = macro Impls.foo[U]
foo(42)
foo("42")
diff --git a/tests/pending/run/macro-expand-tparams-prefix/Macros_Test_2.scala b/tests/pending/run/macro-expand-tparams-prefix/Macros_Test_2.scala
index c8f68b4af..8916f03e4 100644
--- a/tests/pending/run/macro-expand-tparams-prefix/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-tparams-prefix/Macros_Test_2.scala
@@ -29,7 +29,7 @@ object Macros5 {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("===Macros1===")
new Macros1.C[Int]().foo(42)
new Macros1.C[Boolean]().foo(42)
diff --git a/tests/pending/run/macro-expand-unapply-a/Test_2.scala b/tests/pending/run/macro-expand-unapply-a/Test_2.scala
index 6169d86b1..ce52df802 100644
--- a/tests/pending/run/macro-expand-unapply-a/Test_2.scala
+++ b/tests/pending/run/macro-expand-unapply-a/Test_2.scala
@@ -1,6 +1,6 @@
import Macros._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List(1, 2) match { case UnapplyMacro(x, y) => println((x, y)) }
List(1, 2, 3) match { case UnapplyMacro(x, y, z) => println((x, y, z)) }
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-bad/Macros_Test_2.scala b/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-bad/Macros_Test_2.scala
index 64aaa07bf..868fb8d91 100644
--- a/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-bad/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-bad/Macros_Test_2.scala
@@ -2,7 +2,7 @@ object Macros {
def foo(xs: Int*): Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-good/Macros_Test_2.scala b/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-good/Macros_Test_2.scala
index 13d7cd5d5..7eba411cd 100644
--- a/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-good/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-varargs-explicit-over-nonvarargs-good/Macros_Test_2.scala
@@ -2,7 +2,7 @@ object Macros {
def foo(xs: Int*): Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val numbers = List(1, 2, 3, 4, 5)
Macros.foo(numbers: _*)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-varargs-explicit-over-varargs/Macros_Test_2.scala b/tests/pending/run/macro-expand-varargs-explicit-over-varargs/Macros_Test_2.scala
index 13d7cd5d5..7eba411cd 100644
--- a/tests/pending/run/macro-expand-varargs-explicit-over-varargs/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-varargs-explicit-over-varargs/Macros_Test_2.scala
@@ -2,7 +2,7 @@ object Macros {
def foo(xs: Int*): Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val numbers = List(1, 2, 3, 4, 5)
Macros.foo(numbers: _*)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-varargs-implicit-over-nonvarargs/Macros_Test_2.scala b/tests/pending/run/macro-expand-varargs-implicit-over-nonvarargs/Macros_Test_2.scala
index 9ab1be9e2..f50a5d742 100644
--- a/tests/pending/run/macro-expand-varargs-implicit-over-nonvarargs/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-varargs-implicit-over-nonvarargs/Macros_Test_2.scala
@@ -2,6 +2,6 @@ object Macros {
def foo(xs: Int*): Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo(1, 2, 3, 4, 5)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-varargs-implicit-over-varargs/Macros_Test_2.scala b/tests/pending/run/macro-expand-varargs-implicit-over-varargs/Macros_Test_2.scala
index 9ab1be9e2..f50a5d742 100644
--- a/tests/pending/run/macro-expand-varargs-implicit-over-varargs/Macros_Test_2.scala
+++ b/tests/pending/run/macro-expand-varargs-implicit-over-varargs/Macros_Test_2.scala
@@ -2,6 +2,6 @@ object Macros {
def foo(xs: Int*): Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo(1, 2, 3, 4, 5)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-impl-default-params/Test_2.scala b/tests/pending/run/macro-impl-default-params/Test_2.scala
index 90e850df2..476c881f8 100644
--- a/tests/pending/run/macro-impl-default-params/Test_2.scala
+++ b/tests/pending/run/macro-impl-default-params/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("foo_targs:")
new Macros[Int]().foo_targs[String](42)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-impl-relaxed/Test_2.scala b/tests/pending/run/macro-impl-relaxed/Test_2.scala
index 2eaeef0fd..460626272 100644
--- a/tests/pending/run/macro-impl-relaxed/Test_2.scala
+++ b/tests/pending/run/macro-impl-relaxed/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.fooUU(2))
println(Macros.fooTU(2))
println(Macros.fooUT(2))
diff --git a/tests/pending/run/macro-impl-rename-context/Test_2.scala b/tests/pending/run/macro-impl-rename-context/Test_2.scala
index bd9c49354..6b1cdecd0 100644
--- a/tests/pending/run/macro-impl-rename-context/Test_2.scala
+++ b/tests/pending/run/macro-impl-rename-context/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("foo")
Macros.foo(42)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala b/tests/pending/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala
index 4901e2448..b626ce35e 100644
--- a/tests/pending/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala
+++ b/tests/pending/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala
@@ -2,7 +2,7 @@ object Macros {
def foo: Unit = macro Impls.foo[String]
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-impl-tparam-typetag-is-optional/Macros_Test_2.scala b/tests/pending/run/macro-impl-tparam-typetag-is-optional/Macros_Test_2.scala
index 2cf7b19d2..14154ee03 100644
--- a/tests/pending/run/macro-impl-tparam-typetag-is-optional/Macros_Test_2.scala
+++ b/tests/pending/run/macro-impl-tparam-typetag-is-optional/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[U]: Unit = macro Impls.foo[U]
foo[Int]
} \ No newline at end of file
diff --git a/tests/pending/run/macro-invalidret-doesnt-conform-to-def-rettype/Test_2.scala b/tests/pending/run/macro-invalidret-doesnt-conform-to-def-rettype/Test_2.scala
index 61f0bdfad..dea6e6d62 100644
--- a/tests/pending/run/macro-invalidret-doesnt-conform-to-def-rettype/Test_2.scala
+++ b/tests/pending/run/macro-invalidret-doesnt-conform-to-def-rettype/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-invalidret-nontypeable/Test_2.scala b/tests/pending/run/macro-invalidret-nontypeable/Test_2.scala
index 7cd474ff5..26de1d9de 100644
--- a/tests/pending/run/macro-invalidret-nontypeable/Test_2.scala
+++ b/tests/pending/run/macro-invalidret-nontypeable/Test_2.scala
@@ -1,4 +1,4 @@
- object Test extends App {
+ object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-invalidusage-badret/Test_2.scala b/tests/pending/run/macro-invalidusage-badret/Test_2.scala
index fc71353f5..1d208aeb1 100644
--- a/tests/pending/run/macro-invalidusage-badret/Test_2.scala
+++ b/tests/pending/run/macro-invalidusage-badret/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala b/tests/pending/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala
index 9a34c62e0..ba763eda5 100644
--- a/tests/pending/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala
+++ b/tests/pending/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-invalidusage-partialapplication/Test_2.scala b/tests/pending/run/macro-invalidusage-partialapplication/Test_2.scala
index 75b8c139d..a0b90ee6b 100644
--- a/tests/pending/run/macro-invalidusage-partialapplication/Test_2.scala
+++ b/tests/pending/run/macro-invalidusage-partialapplication/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-openmacros/Test_2.scala b/tests/pending/run/macro-openmacros/Test_2.scala
index 5d19639cd..d75fbd0db 100644
--- a/tests/pending/run/macro-openmacros/Test_2.scala
+++ b/tests/pending/run/macro-openmacros/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
}
diff --git a/tests/pending/run/macro-parse-position-malformed/Test_2.scala b/tests/pending/run/macro-parse-position-malformed/Test_2.scala
index cff569bd8..1b04d2af2 100644
--- a/tests/pending/run/macro-parse-position-malformed/Test_2.scala
+++ b/tests/pending/run/macro-parse-position-malformed/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
}
diff --git a/tests/pending/run/macro-parse-position/Test_2.scala b/tests/pending/run/macro-parse-position/Test_2.scala
index cff569bd8..1b04d2af2 100644
--- a/tests/pending/run/macro-parse-position/Test_2.scala
+++ b/tests/pending/run/macro-parse-position/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
}
diff --git a/tests/pending/run/macro-quasiinvalidbody-c/Test_2.scala b/tests/pending/run/macro-quasiinvalidbody-c/Test_2.scala
index dec29aa85..91053843d 100644
--- a/tests/pending/run/macro-quasiinvalidbody-c/Test_2.scala
+++ b/tests/pending/run/macro-quasiinvalidbody-c/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println(foo(42))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-quasiquotes/Test_2.scala b/tests/pending/run/macro-quasiquotes/Test_2.scala
index 4be193938..b7d203197 100644
--- a/tests/pending/run/macro-quasiquotes/Test_2.scala
+++ b/tests/pending/run/macro-quasiquotes/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.m1
Macros.m2
println(Macros.m3)
diff --git a/tests/pending/run/macro-range/Expansion_Impossible_2.scala b/tests/pending/run/macro-range/Expansion_Impossible_2.scala
index 242e83a61..b3c2fa348 100644
--- a/tests/pending/run/macro-range/Expansion_Impossible_2.scala
+++ b/tests/pending/run/macro-range/Expansion_Impossible_2.scala
@@ -48,6 +48,6 @@ class Range(val from: Int, val to: Int) extends RangeDefault {
override def foreach(f: Int => Unit): Unit = macro Impls.foreach
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Range(1, 10) foreach println
} \ No newline at end of file
diff --git a/tests/pending/run/macro-range/Expansion_Possible_3.scala b/tests/pending/run/macro-range/Expansion_Possible_3.scala
index e7ecbcc36..b1fbba765 100644
--- a/tests/pending/run/macro-range/Expansion_Possible_3.scala
+++ b/tests/pending/run/macro-range/Expansion_Possible_3.scala
@@ -2,6 +2,6 @@ class Range(val from: Int, val to: Int) extends RangeDefault {
override def foreach(f: Int => Unit): Unit = macro Impls.foreach
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Range(1, 10) foreach println
} \ No newline at end of file
diff --git a/tests/pending/run/macro-rangepos-args/Test_2.scala b/tests/pending/run/macro-rangepos-args/Test_2.scala
index 8c770e901..936b945c7 100644
--- a/tests/pending/run/macro-rangepos-args/Test_2.scala
+++ b/tests/pending/run/macro-rangepos-args/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
println(Macros.pos(x + 2))
} \ No newline at end of file
diff --git a/tests/pending/run/macro-rangepos-subpatterns/Test_2.scala b/tests/pending/run/macro-rangepos-subpatterns/Test_2.scala
index 7b076e663..b9b308cea 100644
--- a/tests/pending/run/macro-rangepos-subpatterns/Test_2.scala
+++ b/tests/pending/run/macro-rangepos-subpatterns/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
42 match {
case Extractor(a) => println(a)
}
diff --git a/tests/pending/run/macro-reflective-ma-normal-mdmi/Test_2.scala b/tests/pending/run/macro-reflective-ma-normal-mdmi/Test_2.scala
index 267d1bc7b..b8d969b83 100644
--- a/tests/pending/run/macro-reflective-ma-normal-mdmi/Test_2.scala
+++ b/tests/pending/run/macro-reflective-ma-normal-mdmi/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala b/tests/pending/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala
index 410ec1b52..0b867e787 100644
--- a/tests/pending/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala
+++ b/tests/pending/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala
@@ -2,7 +2,7 @@
// def foo(x: Int) = macro Impls.foo
//}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe.Flag._
import scala.reflect.runtime.{currentMirror => cm}
diff --git a/tests/pending/run/macro-reify-abstypetag-notypeparams/Test.scala b/tests/pending/run/macro-reify-abstypetag-notypeparams/Test.scala
index c51f1a10c..cd208668f 100644
--- a/tests/pending/run/macro-reify-abstypetag-notypeparams/Test.scala
+++ b/tests/pending/run/macro-reify-abstypetag-notypeparams/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[WeakTypeTag[Int]])
println(implicitly[WeakTypeTag[List[Int]]])
}
diff --git a/tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala b/tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala
index 19070eec8..99f3689ee 100644
--- a/tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala
+++ b/tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def fooNoTypeTag[T] = {
println(implicitly[WeakTypeTag[T]])
println(implicitly[WeakTypeTag[List[T]]])
diff --git a/tests/pending/run/macro-reify-abstypetag-typeparams-tags/Test.scala b/tests/pending/run/macro-reify-abstypetag-typeparams-tags/Test.scala
index c32dff18a..75846ee8c 100644
--- a/tests/pending/run/macro-reify-abstypetag-typeparams-tags/Test.scala
+++ b/tests/pending/run/macro-reify-abstypetag-typeparams-tags/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def fooTypeTag[T: WeakTypeTag] = {
println(implicitly[WeakTypeTag[T]])
println(implicitly[WeakTypeTag[List[T]]])
diff --git a/tests/pending/run/macro-reify-abstypetag-usetypetag/Test.scala b/tests/pending/run/macro-reify-abstypetag-usetypetag/Test.scala
index af5b924f5..7b21555e8 100644
--- a/tests/pending/run/macro-reify-abstypetag-usetypetag/Test.scala
+++ b/tests/pending/run/macro-reify-abstypetag-usetypetag/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def fooTypeTag[T: TypeTag] = {
println(implicitly[WeakTypeTag[T]])
println(implicitly[WeakTypeTag[List[T]]])
diff --git a/tests/pending/run/macro-reify-basic/Test_2.scala b/tests/pending/run/macro-reify-basic/Test_2.scala
index 0a762f7ad..26b2c7d9f 100644
--- a/tests/pending/run/macro-reify-basic/Test_2.scala
+++ b/tests/pending/run/macro-reify-basic/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo("world")
} \ No newline at end of file
diff --git a/tests/pending/run/macro-reify-chained1/Test_2.scala b/tests/pending/run/macro-reify-chained1/Test_2.scala
index 2adb07b03..01a021893 100644
--- a/tests/pending/run/macro-reify-chained1/Test_2.scala
+++ b/tests/pending/run/macro-reify-chained1/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(x => x).map(x => x)
diff --git a/tests/pending/run/macro-reify-chained2/Test_2.scala b/tests/pending/run/macro-reify-chained2/Test_2.scala
index 2adb07b03..01a021893 100644
--- a/tests/pending/run/macro-reify-chained2/Test_2.scala
+++ b/tests/pending/run/macro-reify-chained2/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(x => x).map(x => x)
diff --git a/tests/pending/run/macro-reify-freevars/Test_2.scala b/tests/pending/run/macro-reify-freevars/Test_2.scala
index c2d0118e1..11c8128cd 100644
--- a/tests/pending/run/macro-reify-freevars/Test_2.scala
+++ b/tests/pending/run/macro-reify-freevars/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-reify-nested-a1/Test_2.scala b/tests/pending/run/macro-reify-nested-a1/Test_2.scala
index b99c4c55e..37282cad7 100644
--- a/tests/pending/run/macro-reify-nested-a1/Test_2.scala
+++ b/tests/pending/run/macro-reify-nested-a1/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(e1 => q.map(e2=>e1))
diff --git a/tests/pending/run/macro-reify-nested-a2/Test_2.scala b/tests/pending/run/macro-reify-nested-a2/Test_2.scala
index b99c4c55e..37282cad7 100644
--- a/tests/pending/run/macro-reify-nested-a2/Test_2.scala
+++ b/tests/pending/run/macro-reify-nested-a2/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(e1 => q.map(e2=>e1))
diff --git a/tests/pending/run/macro-reify-nested-b1/Test_2.scala b/tests/pending/run/macro-reify-nested-b1/Test_2.scala
index b19903634..b9d6846dc 100644
--- a/tests/pending/run/macro-reify-nested-b1/Test_2.scala
+++ b/tests/pending/run/macro-reify-nested-b1/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(e1 => q.map(e2=>e1).map(e2=>e1))
diff --git a/tests/pending/run/macro-reify-nested-b2/Test_2.scala b/tests/pending/run/macro-reify-nested-b2/Test_2.scala
index b19903634..b9d6846dc 100644
--- a/tests/pending/run/macro-reify-nested-b2/Test_2.scala
+++ b/tests/pending/run/macro-reify-nested-b2/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val q : Queryable[Any] = new Queryable[Any]
q.map(e1 => q.map(e2=>e1).map(e2=>e1))
diff --git a/tests/pending/run/macro-reify-ref-to-packageless/Test_2.scala b/tests/pending/run/macro-reify-ref-to-packageless/Test_2.scala
index c167b160b..ff5b60a6a 100644
--- a/tests/pending/run/macro-reify-ref-to-packageless/Test_2.scala
+++ b/tests/pending/run/macro-reify-ref-to-packageless/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo: Int = macro Impls.foo
println(foo)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala b/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala
index dbc17e7c1..f99d40dad 100644
--- a/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala
+++ b/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/macro-reify-staticXXX/Test_2.scala b/tests/pending/run/macro-reify-staticXXX/Test_2.scala
index 6e8cc3608..4c02e26f6 100644
--- a/tests/pending/run/macro-reify-staticXXX/Test_2.scala
+++ b/tests/pending/run/macro-reify-staticXXX/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
packageless.test
packageful.Test.test
}
diff --git a/tests/pending/run/macro-reify-tagful-a/Test_2.scala b/tests/pending/run/macro-reify-tagful-a/Test_2.scala
index 4d2716634..5095ddcaa 100644
--- a/tests/pending/run/macro-reify-tagful-a/Test_2.scala
+++ b/tests/pending/run/macro-reify-tagful-a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val list: List[String] = Macros.foo("hello world")
println(list)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-reify-tagless-a/Test_2.scala b/tests/pending/run/macro-reify-tagless-a/Test_2.scala
index afb418a75..af882664d 100644
--- a/tests/pending/run/macro-reify-tagless-a/Test_2.scala
+++ b/tests/pending/run/macro-reify-tagless-a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
//val list: List[String] = Macros.foo("hello world")
//println(list)
diff --git a/tests/pending/run/macro-reify-type/Test_2.scala b/tests/pending/run/macro-reify-type/Test_2.scala
index 8ec60e9f6..c9e56d718 100644
--- a/tests/pending/run/macro-reify-type/Test_2.scala
+++ b/tests/pending/run/macro-reify-type/Test_2.scala
@@ -1,6 +1,6 @@
import StaticReflect._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
//println(method[List[Int]]("distinct"))
println(method[List[Int]]("map"))
//val $u: scala.reflect.runtime.universe.type = scala.reflect.runtime.universe;
diff --git a/tests/pending/run/macro-reify-typetag-notypeparams/Test.scala b/tests/pending/run/macro-reify-typetag-notypeparams/Test.scala
index 29732ceb7..1eff6e93f 100644
--- a/tests/pending/run/macro-reify-typetag-notypeparams/Test.scala
+++ b/tests/pending/run/macro-reify-typetag-notypeparams/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[TypeTag[Int]])
println(implicitly[TypeTag[List[Int]]])
}
diff --git a/tests/pending/run/macro-reify-typetag-typeparams-tags/Test.scala b/tests/pending/run/macro-reify-typetag-typeparams-tags/Test.scala
index ec68f9d10..4540bb6b3 100644
--- a/tests/pending/run/macro-reify-typetag-typeparams-tags/Test.scala
+++ b/tests/pending/run/macro-reify-typetag-typeparams-tags/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def fooTypeTag[T: TypeTag] = {
println(implicitly[TypeTag[T]])
println(implicitly[TypeTag[List[T]]])
diff --git a/tests/pending/run/macro-reify-unreify/Test_2.scala b/tests/pending/run/macro-reify-unreify/Test_2.scala
index 0a762f7ad..26b2c7d9f 100644
--- a/tests/pending/run/macro-reify-unreify/Test_2.scala
+++ b/tests/pending/run/macro-reify-unreify/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo("world")
} \ No newline at end of file
diff --git a/tests/pending/run/macro-settings/Test_2.scala b/tests/pending/run/macro-settings/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/macro-settings/Test_2.scala
+++ b/tests/pending/run/macro-settings/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-sip19-revised/Test_2.scala b/tests/pending/run/macro-sip19-revised/Test_2.scala
index d9a4d7d4f..483665ae4 100644
--- a/tests/pending/run/macro-sip19-revised/Test_2.scala
+++ b/tests/pending/run/macro-sip19-revised/Test_2.scala
@@ -1,6 +1,6 @@
import Macros._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(x: Int, y: Int)(implicit loc: SourceLocation): Int = {
println("hey, i've been called from %s".format(loc))
if (x < y) foo(y, x)
diff --git a/tests/pending/run/macro-sip19/Test_2.scala b/tests/pending/run/macro-sip19/Test_2.scala
index 32326e635..0255f1381 100644
--- a/tests/pending/run/macro-sip19/Test_2.scala
+++ b/tests/pending/run/macro-sip19/Test_2.scala
@@ -1,6 +1,6 @@
import Macros._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(x: Int, y: Int)(implicit loc0: SourceLocation): Int = {
var loc = loc0;
{
diff --git a/tests/pending/run/macro-subpatterns/Test_2.scala b/tests/pending/run/macro-subpatterns/Test_2.scala
index dc6e66887..b19bd9b9b 100644
--- a/tests/pending/run/macro-subpatterns/Test_2.scala
+++ b/tests/pending/run/macro-subpatterns/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
42 match {
case Extractor(a @ Extractor(b @ Extractor(c))) => println(a); println(b); println(c)
}
diff --git a/tests/pending/run/macro-term-declared-in-annotation/Test_3.scala b/tests/pending/run/macro-term-declared-in-annotation/Test_3.scala
index 866487f02..322ef9eb1 100644
--- a/tests/pending/run/macro-term-declared-in-annotation/Test_3.scala
+++ b/tests/pending/run/macro-term-declared-in-annotation/Test_3.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Api.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-anonymous/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-anonymous/Macros_Test_2.scala
index 5039dffd5..894947e1e 100644
--- a/tests/pending/run/macro-term-declared-in-anonymous/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-anonymous/Macros_Test_2.scala
@@ -1,6 +1,6 @@
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val macros = new { def foo: Unit = macro Impls.foo }
macros.foo
}
diff --git a/tests/pending/run/macro-term-declared-in-block/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-block/Macros_Test_2.scala
index 80bfc44be..eba5e4961 100644
--- a/tests/pending/run/macro-term-declared-in-block/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-block/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
def foo: Unit = macro Impls.foo
foo
diff --git a/tests/pending/run/macro-term-declared-in-class-class/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-class-class/Macros_Test_2.scala
index d6b1f9fab..7f813a30d 100644
--- a/tests/pending/run/macro-term-declared-in-class-class/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-class-class/Macros_Test_2.scala
@@ -4,7 +4,7 @@ class Macros {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = new Macros()
new outer.Macros().foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-class-object/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-class-object/Macros_Test_2.scala
index 957f666bb..12c6328c9 100644
--- a/tests/pending/run/macro-term-declared-in-class-object/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-class-object/Macros_Test_2.scala
@@ -4,7 +4,7 @@ class Macros {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = new Macros()
outer.Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala
index 5898d94dc..0c9a7ccf0 100644
--- a/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala
@@ -2,6 +2,6 @@ class Macros {
def foo: Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Macros().foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-default-param/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-default-param/Macros_Test_2.scala
index 16bd95b1e..856a4e44f 100644
--- a/tests/pending/run/macro-term-declared-in-default-param/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-default-param/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(bar: String = { def foo: String = macro Impls.foo; foo }) = println(bar)
foo()
diff --git a/tests/pending/run/macro-term-declared-in-implicit-class/Test_2.scala b/tests/pending/run/macro-term-declared-in-implicit-class/Test_2.scala
index d0bc9cc38..fd67062be 100644
--- a/tests/pending/run/macro-term-declared-in-implicit-class/Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-implicit-class/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println("2".toOptionOfInt)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-method/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-method/Macros_Test_2.scala
index 523989df1..d40eb4c60 100644
--- a/tests/pending/run/macro-term-declared-in-method/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-method/Macros_Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bar() = {
def foo: Unit = macro Impls.foo
foo
diff --git a/tests/pending/run/macro-term-declared-in-object-class/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-object-class/Macros_Test_2.scala
index fe9dbef25..89aed84c7 100644
--- a/tests/pending/run/macro-term-declared-in-object-class/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-object-class/Macros_Test_2.scala
@@ -4,7 +4,7 @@ object Macros {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = Macros
new outer.Macros().foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-object-object/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-object-object/Macros_Test_2.scala
index 4ba755181..c5950fe61 100644
--- a/tests/pending/run/macro-term-declared-in-object-object/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-object-object/Macros_Test_2.scala
@@ -4,7 +4,7 @@ object Macros {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = Macros
outer.Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-object/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-object/Macros_Test_2.scala
index 9ebf5d7db..f89a21d92 100644
--- a/tests/pending/run/macro-term-declared-in-object/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-object/Macros_Test_2.scala
@@ -2,6 +2,6 @@ object Macros {
def foo: Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-package-object/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-package-object/Macros_Test_2.scala
index 1f378b8bf..69f3803ba 100644
--- a/tests/pending/run/macro-term-declared-in-package-object/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-package-object/Macros_Test_2.scala
@@ -2,7 +2,7 @@ package object Macros {
def foo: Unit = macro Impls.foo
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
foo
} \ No newline at end of file
diff --git a/tests/pending/run/macro-term-declared-in-refinement/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-refinement/Macros_Test_2.scala
index b38616b71..49192291e 100644
--- a/tests/pending/run/macro-term-declared-in-refinement/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-refinement/Macros_Test_2.scala
@@ -2,7 +2,7 @@ import scala.language.reflectiveCalls
class Base
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val macros = new Base { def foo: Unit = macro Impls.foo }
macros.foo
}
diff --git a/tests/pending/run/macro-term-declared-in-trait/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-trait/Macros_Test_2.scala
index 09c60df35..5780aba45 100644
--- a/tests/pending/run/macro-term-declared-in-trait/Macros_Test_2.scala
+++ b/tests/pending/run/macro-term-declared-in-trait/Macros_Test_2.scala
@@ -6,7 +6,7 @@ object Macros extends Base
class Macros extends Base
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
(new Base {}).foo
Macros.foo
new Macros().foo
diff --git a/tests/pending/run/macro-typecheck-implicitsdisabled/Test_2.scala b/tests/pending/run/macro-typecheck-implicitsdisabled/Test_2.scala
index 127e955f0..87d3148e9 100644
--- a/tests/pending/run/macro-typecheck-implicitsdisabled/Test_2.scala
+++ b/tests/pending/run/macro-typecheck-implicitsdisabled/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo_with_implicits_enabled)
println(Macros.foo_with_implicits_disabled)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-typecheck-macrosdisabled/Test_2.scala b/tests/pending/run/macro-typecheck-macrosdisabled/Test_2.scala
index bdba39195..887f28c8c 100644
--- a/tests/pending/run/macro-typecheck-macrosdisabled/Test_2.scala
+++ b/tests/pending/run/macro-typecheck-macrosdisabled/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo_with_macros_enabled)
println(Macros.foo_with_macros_disabled)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-typecheck-macrosdisabled2/Test_2.scala b/tests/pending/run/macro-typecheck-macrosdisabled2/Test_2.scala
index bdba39195..887f28c8c 100644
--- a/tests/pending/run/macro-typecheck-macrosdisabled2/Test_2.scala
+++ b/tests/pending/run/macro-typecheck-macrosdisabled2/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo_with_macros_enabled)
println(Macros.foo_with_macros_disabled)
} \ No newline at end of file
diff --git a/tests/pending/run/macro-undetparams-consfromsls/Test_2.scala b/tests/pending/run/macro-undetparams-consfromsls/Test_2.scala
index f2c2ce005..338684401 100644
--- a/tests/pending/run/macro-undetparams-consfromsls/Test_2.scala
+++ b/tests/pending/run/macro-undetparams-consfromsls/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
val xs = cons(1, nil)
println(xs)
diff --git a/tests/pending/run/macro-undetparams-implicitval/Test.scala b/tests/pending/run/macro-undetparams-implicitval/Test.scala
index c584e45b2..5e38618f6 100644
--- a/tests/pending/run/macro-undetparams-implicitval/Test.scala
+++ b/tests/pending/run/macro-undetparams-implicitval/Test.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[T: TypeTag] = println(implicitly[TypeTag[T]])
foo
}
diff --git a/tests/pending/run/macro-undetparams-macroitself/Test_2.scala b/tests/pending/run/macro-undetparams-macroitself/Test_2.scala
index 1a93ff130..c315f3508 100644
--- a/tests/pending/run/macro-undetparams-macroitself/Test_2.scala
+++ b/tests/pending/run/macro-undetparams-macroitself/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo(42)
Macros.foo("42")
} \ No newline at end of file
diff --git a/tests/pending/run/macro-vampire-false-warning/Test_2.scala b/tests/pending/run/macro-vampire-false-warning/Test_2.scala
index 6e44b6863..d28849b88 100644
--- a/tests/pending/run/macro-vampire-false-warning/Test_2.scala
+++ b/tests/pending/run/macro-vampire-false-warning/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = mkObject("x" -> "2", "y" -> 3)
println(foo.x)
println(foo.y)
diff --git a/tests/pending/run/macro-whitebox-dynamic-materialization/Test_2.scala b/tests/pending/run/macro-whitebox-dynamic-materialization/Test_2.scala
index abb5229bd..10d89dd3c 100644
--- a/tests/pending/run/macro-whitebox-dynamic-materialization/Test_2.scala
+++ b/tests/pending/run/macro-whitebox-dynamic-materialization/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[Foo[C1]])
println(implicitly[Foo[C2]])
}
diff --git a/tests/pending/run/macro-whitebox-extractor/Test_2.scala b/tests/pending/run/macro-whitebox-extractor/Test_2.scala
index 41be6f976..7c354ecd6 100644
--- a/tests/pending/run/macro-whitebox-extractor/Test_2.scala
+++ b/tests/pending/run/macro-whitebox-extractor/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
42 match {
case Extractor(x) => println(x)
}
diff --git a/tests/pending/run/macro-whitebox-fundep-materialization/Test_2.scala b/tests/pending/run/macro-whitebox-fundep-materialization/Test_2.scala
index 40ca1d549..72183ba86 100644
--- a/tests/pending/run/macro-whitebox-fundep-materialization/Test_2.scala
+++ b/tests/pending/run/macro-whitebox-fundep-materialization/Test_2.scala
@@ -1,5 +1,5 @@
// see the comments for macroExpand.onDelayed for an explanation of what's tested here
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Foo(i: Int, s: String, b: Boolean)
def foo[C, L](c: C)(implicit iso: Iso[C, L]): L = iso.to(c)
diff --git a/tests/pending/run/macro-whitebox-structural/Test_2.scala b/tests/pending/run/macro-whitebox-structural/Test_2.scala
index ea6a817e3..6fa47e1dd 100644
--- a/tests/pending/run/macro-whitebox-structural/Test_2.scala
+++ b/tests/pending/run/macro-whitebox-structural/Test_2.scala
@@ -1,5 +1,5 @@
import Macros._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo.x)
} \ No newline at end of file
diff --git a/tests/pending/run/macroPlugins-isBlackbox/Test_3.scala b/tests/pending/run/macroPlugins-isBlackbox/Test_3.scala
index 552e88814..f191e5de3 100644
--- a/tests/pending/run/macroPlugins-isBlackbox/Test_3.scala
+++ b/tests/pending/run/macroPlugins-isBlackbox/Test_3.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: Int = Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/macroPlugins-macroArgs/Test_3.scala b/tests/pending/run/macroPlugins-macroArgs/Test_3.scala
index a54d60817..8d3be78bb 100644
--- a/tests/pending/run/macroPlugins-macroArgs/Test_3.scala
+++ b/tests/pending/run/macroPlugins-macroArgs/Test_3.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo("1")
Macros.foo("2")
} \ No newline at end of file
diff --git a/tests/pending/run/macroPlugins-macroExpand/Test_3.scala b/tests/pending/run/macroPlugins-macroExpand/Test_3.scala
index def9b5608..a730821f2 100644
--- a/tests/pending/run/macroPlugins-macroExpand/Test_3.scala
+++ b/tests/pending/run/macroPlugins-macroExpand/Test_3.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo1
Macros.foo2
} \ No newline at end of file
diff --git a/tests/pending/run/macroPlugins-macroRuntime/Test_3.scala b/tests/pending/run/macroPlugins-macroRuntime/Test_3.scala
index a54d60817..8d3be78bb 100644
--- a/tests/pending/run/macroPlugins-macroRuntime/Test_3.scala
+++ b/tests/pending/run/macroPlugins-macroRuntime/Test_3.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo("1")
Macros.foo("2")
} \ No newline at end of file
diff --git a/tests/pending/run/macroPlugins-typedMacroBody/Test_3.scala b/tests/pending/run/macroPlugins-typedMacroBody/Test_3.scala
index def9b5608..a730821f2 100644
--- a/tests/pending/run/macroPlugins-typedMacroBody/Test_3.scala
+++ b/tests/pending/run/macroPlugins-typedMacroBody/Test_3.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo1
Macros.foo2
} \ No newline at end of file
diff --git a/tests/pending/run/manifests-undeprecated-in-2.10.0.scala b/tests/pending/run/manifests-undeprecated-in-2.10.0.scala
index 2a7321db9..e7dd61145 100644
--- a/tests/pending/run/manifests-undeprecated-in-2.10.0.scala
+++ b/tests/pending/run/manifests-undeprecated-in-2.10.0.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def m1a: scala.reflect.Manifest[Int] = scala.reflect.Manifest.Int
def m2a: scala.reflect.OptManifest[Int] = ???
def m3a = scala.reflect.NoManifest
diff --git a/tests/pending/run/map_test.scala b/tests/pending/run/map_test.scala
index b7036f51d..947c846bd 100644
--- a/tests/pending/run/map_test.scala
+++ b/tests/pending/run/map_test.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.{ListMap, Map, TreeMap}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
test1()
test2()
println("OK")
diff --git a/tests/pending/run/matcharraytail.scala b/tests/pending/run/matcharraytail.scala
index e82bcf6f0..3120769f4 100644
--- a/tests/pending/run/matcharraytail.scala
+++ b/tests/pending/run/matcharraytail.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
Array("foo", "bar", "baz") match {
case x@Array("foo", bar :_*) => println(x.deep.toString); println(bar.toString);
case Array(x, y, z) => println("shouldn't have fallen through");
diff --git a/tests/pending/run/matchbytes.scala b/tests/pending/run/matchbytes.scala
index f2cea06eb..b4455e8f4 100644
--- a/tests/pending/run/matchbytes.scala
+++ b/tests/pending/run/matchbytes.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val x = (1 : Byte) match {
case 2 => println(2);
case 1 => println(1);
diff --git a/tests/pending/run/matchemptyarray.scala b/tests/pending/run/matchemptyarray.scala
index 1fa53b482..fa56c0ed3 100644
--- a/tests/pending/run/matchemptyarray.scala
+++ b/tests/pending/run/matchemptyarray.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
Array[String]() match {
case x@Array() => println(x.deep.toString());
}
diff --git a/tests/pending/run/matchintasany.scala b/tests/pending/run/matchintasany.scala
index 03f6ca2a8..ab61e727a 100644
--- a/tests/pending/run/matchintasany.scala
+++ b/tests/pending/run/matchintasany.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val x = (1 : Any) match {
case 0xFFFFFFFF00000001L => println("Oops, overflow!");
case 2L => println(2);
diff --git a/tests/pending/run/matchonseq.scala b/tests/pending/run/matchonseq.scala
index f6f320245..99138706b 100644
--- a/tests/pending/run/matchonseq.scala
+++ b/tests/pending/run/matchonseq.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Vector(1,2,3) match {
case head +: tail => println("It worked! head=" + head)
}
diff --git a/tests/pending/run/matchonstream.scala b/tests/pending/run/matchonstream.scala
index 0ccc7bc47..6e5556519 100644
--- a/tests/pending/run/matchonstream.scala
+++ b/tests/pending/run/matchonstream.scala
@@ -1,3 +1,3 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
Stream.from(1) match { case Stream(1, 2, x :_*) => println("It worked!") }
}
diff --git a/tests/pending/run/mirror_symbolof_x.scala b/tests/pending/run/mirror_symbolof_x.scala
index 8fec301f5..43e46cf92 100644
--- a/tests/pending/run/mirror_symbolof_x.scala
+++ b/tests/pending/run/mirror_symbolof_x.scala
@@ -6,7 +6,7 @@ import scala.reflect.api.Mirror
class C
object C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object test1 {
val m = cm
type T = Int
diff --git a/tests/pending/run/missingparams.scala b/tests/pending/run/missingparams.scala
index fbc4d2a4f..21c9ae170 100644
--- a/tests/pending/run/missingparams.scala
+++ b/tests/pending/run/missingparams.scala
@@ -13,7 +13,7 @@ final class Foo(val x: Int) {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo1 = new Foo(42)
val foo2 = new Foo(-42)
diff --git a/tests/pending/run/multi-array.scala b/tests/pending/run/multi-array.scala
index 36e21ae53..ff8b8ff2e 100644
--- a/tests/pending/run/multi-array.scala
+++ b/tests/pending/run/multi-array.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = Array(1, 2, 3)
println(a.deep.toString)
diff --git a/tests/pending/run/mutable-treeset.scala b/tests/pending/run/mutable-treeset.scala
index 28b233836..97dda6531 100644
--- a/tests/pending/run/mutable-treeset.scala
+++ b/tests/pending/run/mutable-treeset.scala
@@ -1,6 +1,6 @@
import scala.collection.mutable.TreeSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val list = List(6,5,4,3,2,1,1,2,3,4,5,6,6,5,4,3,2,1)
val distinct = list.distinct
val sorted = distinct.sorted
diff --git a/tests/pending/run/names-defaults.scala b/tests/pending/run/names-defaults.scala
index 20acc0292..12a118ddd 100644
--- a/tests/pending/run/names-defaults.scala
+++ b/tests/pending/run/names-defaults.scala
@@ -1,7 +1,7 @@
import scala.language.{ higherKinds, existentials }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def get[T](x: T) = { println("get: "+ x); x }
// TESTS
diff --git a/tests/pending/run/newTags.scala b/tests/pending/run/newTags.scala
index 43c01256e..a54bc3c6b 100644
--- a/tests/pending/run/newTags.scala
+++ b/tests/pending/run/newTags.scala
@@ -1,7 +1,7 @@
import scala.reflect.api.{Universe => ApiUniverse}
import scala.reflect.runtime.{universe => ru}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(ru.typeOf[List[Int]])
def foo[T: ru.TypeTag] = {
println(ru.typeOf[T])
diff --git a/tests/pending/run/nothingTypeDce.scala b/tests/pending/run/nothingTypeDce.scala
index 5f3692fd3..b1acb7d51 100644
--- a/tests/pending/run/nothingTypeDce.scala
+++ b/tests/pending/run/nothingTypeDce.scala
@@ -56,7 +56,7 @@ class C {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// creating an instance is enough to trigger bytecode verification for all methods,
// no need to invoke the methods.
new C()
diff --git a/tests/pending/run/nothingTypeNoFramesNoDce.scala b/tests/pending/run/nothingTypeNoFramesNoDce.scala
index 3d1298303..13c1617dd 100644
--- a/tests/pending/run/nothingTypeNoFramesNoDce.scala
+++ b/tests/pending/run/nothingTypeNoFramesNoDce.scala
@@ -56,6 +56,6 @@ class C {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new C()
}
diff --git a/tests/pending/run/nothingTypeNoOpt.scala b/tests/pending/run/nothingTypeNoOpt.scala
index 5c5a20fa3..840859287 100644
--- a/tests/pending/run/nothingTypeNoOpt.scala
+++ b/tests/pending/run/nothingTypeNoOpt.scala
@@ -56,6 +56,6 @@ class C {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new C()
}
diff --git a/tests/pending/run/nullable-lazyvals.scala b/tests/pending/run/nullable-lazyvals.scala
index c201e74e7..bb3292b7e 100644
--- a/tests/pending/run/nullable-lazyvals.scala
+++ b/tests/pending/run/nullable-lazyvals.scala
@@ -9,7 +9,7 @@ class Foo(param1: => Object, param2: => String) {
lazy val field2 = try param2 finally println("")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = new Foo(new Object, "abc")
foo.field1
diff --git a/tests/pending/run/outertest.scala b/tests/pending/run/outertest.scala
index f1030da23..edeac9f62 100644
--- a/tests/pending/run/outertest.scala
+++ b/tests/pending/run/outertest.scala
@@ -33,7 +33,7 @@ class C extends A {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = new B
val c0 = new C
val c = new C {
diff --git a/tests/pending/run/patmat-finally.scala b/tests/pending/run/patmat-finally.scala
index e16945202..895fb79f7 100644
--- a/tests/pending/run/patmat-finally.scala
+++ b/tests/pending/run/patmat-finally.scala
@@ -1,5 +1,5 @@
/** Test pattern matching and finally, see SI-5929. */
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bar(s1: Object, s2: Object): Unit = {
s1 match {
case _ =>
diff --git a/tests/pending/run/patmat_unapp_abstype-new.scala b/tests/pending/run/patmat_unapp_abstype-new.scala
index c2927bd12..fa8b2151c 100644
--- a/tests/pending/run/patmat_unapp_abstype-new.scala
+++ b/tests/pending/run/patmat_unapp_abstype-new.scala
@@ -70,7 +70,7 @@ object TestUnappDynamicSynth extends RealFoos with Intermed {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
TestUnappStaticallyKnownSynthetic.test()
TestUnappDynamicSynth.test()
}
diff --git a/tests/pending/run/phantomValueClass.scala b/tests/pending/run/phantomValueClass.scala
index f6509f218..fb4b8e2d0 100644
--- a/tests/pending/run/phantomValueClass.scala
+++ b/tests/pending/run/phantomValueClass.scala
@@ -2,7 +2,7 @@ final class Phantom[A](val s: String) extends AnyVal {
def compose(p: Phantom[A]): Phantom[A] = new Phantom[A](s+p.s)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = new Phantom[Int]("foo")
val y = new Phantom[Int]("bar")
val z = x compose y
diff --git a/tests/pending/run/proxy.scala b/tests/pending/run/proxy.scala
index 8a6385dc8..8449b7329 100644
--- a/tests/pending/run/proxy.scala
+++ b/tests/pending/run/proxy.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val p = new Proxy {
def self = 2
}
diff --git a/tests/pending/run/rawstrings.scala b/tests/pending/run/rawstrings.scala
index b4d6e0c40..bf4c684f3 100644
--- a/tests/pending/run/rawstrings.scala
+++ b/tests/pending/run/rawstrings.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(raw"[\n\t'${'"'}$$\n]")
}
diff --git a/tests/pending/run/reflection-allmirrors-tostring.scala b/tests/pending/run/reflection-allmirrors-tostring.scala
index f0614e9a9..bc2c080ab 100644
--- a/tests/pending/run/reflection-allmirrors-tostring.scala
+++ b/tests/pending/run/reflection-allmirrors-tostring.scala
@@ -18,7 +18,7 @@ class C {
}
object M
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val cm = scala.reflect.runtime.currentMirror
// println(cm)
diff --git a/tests/pending/run/reflection-companion.scala b/tests/pending/run/reflection-companion.scala
index 63929091c..f5c6702c1 100644
--- a/tests/pending/run/reflection-companion.scala
+++ b/tests/pending/run/reflection-companion.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class C
object C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
type T = C
println(showRaw(symbolOf[C].companion, printKinds = true))
diff --git a/tests/pending/run/reflection-companiontype.scala b/tests/pending/run/reflection-companiontype.scala
index 1111bbd06..099f1013a 100644
--- a/tests/pending/run/reflection-companiontype.scala
+++ b/tests/pending/run/reflection-companiontype.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class C
object C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
type T = C
println("TypeRefs")
diff --git a/tests/pending/run/reflection-constructormirror-inner-badpath.scala b/tests/pending/run/reflection-constructormirror-inner-badpath.scala
index 159aa1d51..44743d137 100644
--- a/tests/pending/run/reflection-constructormirror-inner-badpath.scala
+++ b/tests/pending/run/reflection-constructormirror-inner-badpath.scala
@@ -26,7 +26,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println( foo.foo )
}
diff --git a/tests/pending/run/reflection-constructormirror-inner-good.scala b/tests/pending/run/reflection-constructormirror-inner-good.scala
index c57a8d4b7..0d00f24e1 100644
--- a/tests/pending/run/reflection-constructormirror-inner-good.scala
+++ b/tests/pending/run/reflection-constructormirror-inner-good.scala
@@ -20,7 +20,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println( foo.foo )
}
diff --git a/tests/pending/run/reflection-constructormirror-nested-badpath.scala b/tests/pending/run/reflection-constructormirror-nested-badpath.scala
index c5beb95c6..fa8ff04d3 100644
--- a/tests/pending/run/reflection-constructormirror-nested-badpath.scala
+++ b/tests/pending/run/reflection-constructormirror-nested-badpath.scala
@@ -22,7 +22,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
case class R(
sales : Int,
name : String
diff --git a/tests/pending/run/reflection-constructormirror-nested-good.scala b/tests/pending/run/reflection-constructormirror-nested-good.scala
index 7a5947a2b..94ddfac33 100644
--- a/tests/pending/run/reflection-constructormirror-nested-good.scala
+++ b/tests/pending/run/reflection-constructormirror-nested-good.scala
@@ -16,7 +16,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
case class R(
sales : Int,
name : String
diff --git a/tests/pending/run/reflection-constructormirror-toplevel-badpath.scala b/tests/pending/run/reflection-constructormirror-toplevel-badpath.scala
index 3fc9f3f55..e5d3756a0 100644
--- a/tests/pending/run/reflection-constructormirror-toplevel-badpath.scala
+++ b/tests/pending/run/reflection-constructormirror-toplevel-badpath.scala
@@ -27,7 +27,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println( foo.foo )
}
diff --git a/tests/pending/run/reflection-constructormirror-toplevel-good.scala b/tests/pending/run/reflection-constructormirror-toplevel-good.scala
index de9149fb4..f16f8c734 100644
--- a/tests/pending/run/reflection-constructormirror-toplevel-good.scala
+++ b/tests/pending/run/reflection-constructormirror-toplevel-good.scala
@@ -21,7 +21,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println( foo.foo )
}
diff --git a/tests/pending/run/reflection-enclosed-basic.scala b/tests/pending/run/reflection-enclosed-basic.scala
index e001207e8..4bb3f62d9 100644
--- a/tests/pending/run/reflection-enclosed-basic.scala
+++ b/tests/pending/run/reflection-enclosed-basic.scala
@@ -9,7 +9,7 @@ private object B4 { override def toString = "B4"; def foo = 4 }
object B5 extends B1 { override def toString = "B5"; override def foo = 5 }
private object B6 extends B2 { override def toString = "B6"; override def foo = 6 }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testMethodInvocation(instance: Any) = {
val instanceMirror = cm.reflect(instance)
val method = instanceMirror.symbol.info.decl(TermName("foo")).asMethod
diff --git a/tests/pending/run/reflection-enclosed-inner-basic.scala b/tests/pending/run/reflection-enclosed-inner-basic.scala
index fd81a8d11..920b78ae4 100644
--- a/tests/pending/run/reflection-enclosed-inner-basic.scala
+++ b/tests/pending/run/reflection-enclosed-inner-basic.scala
@@ -11,7 +11,7 @@ class B {
private object B6 extends B2 { override def toString = "B6"; override def foo = 6 }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = cm.classSymbol(classTag[B].runtimeClass)
println(b)
println(b.info.decls.toList)
diff --git a/tests/pending/run/reflection-enclosed-inner-inner-basic.scala b/tests/pending/run/reflection-enclosed-inner-inner-basic.scala
index 45dfb8a61..771f0cebb 100644
--- a/tests/pending/run/reflection-enclosed-inner-inner-basic.scala
+++ b/tests/pending/run/reflection-enclosed-inner-inner-basic.scala
@@ -13,7 +13,7 @@ class B {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = cm.classSymbol(classTag[B#BB].runtimeClass)
println(b)
println(b.info.decls.toList)
diff --git a/tests/pending/run/reflection-enclosed-inner-nested-basic.scala b/tests/pending/run/reflection-enclosed-inner-nested-basic.scala
index 1973f4739..edaf10f5e 100644
--- a/tests/pending/run/reflection-enclosed-inner-nested-basic.scala
+++ b/tests/pending/run/reflection-enclosed-inner-nested-basic.scala
@@ -13,7 +13,7 @@ class B {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer1 = new B()
val b = cm.moduleSymbol(classTag[outer1.BB.type].runtimeClass)
println(b)
diff --git a/tests/pending/run/reflection-enclosed-nested-basic.scala b/tests/pending/run/reflection-enclosed-nested-basic.scala
index 4ff333d10..f81fa8410 100644
--- a/tests/pending/run/reflection-enclosed-nested-basic.scala
+++ b/tests/pending/run/reflection-enclosed-nested-basic.scala
@@ -11,7 +11,7 @@ object B {
private object B6 extends B2 { override def toString = "B6"; override def foo = 6 }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = cm.moduleSymbol(classTag[B.type].runtimeClass)
println(b)
println(b.info.decls.toList)
diff --git a/tests/pending/run/reflection-enclosed-nested-inner-basic.scala b/tests/pending/run/reflection-enclosed-nested-inner-basic.scala
index d45894c8c..09290bdcf 100644
--- a/tests/pending/run/reflection-enclosed-nested-inner-basic.scala
+++ b/tests/pending/run/reflection-enclosed-nested-inner-basic.scala
@@ -13,7 +13,7 @@ object B {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = cm.classSymbol(classTag[B.BB].runtimeClass)
println(b)
println(b.info.decls.toList)
diff --git a/tests/pending/run/reflection-enclosed-nested-nested-basic.scala b/tests/pending/run/reflection-enclosed-nested-nested-basic.scala
index 8a630ea1f..a601f207c 100644
--- a/tests/pending/run/reflection-enclosed-nested-nested-basic.scala
+++ b/tests/pending/run/reflection-enclosed-nested-nested-basic.scala
@@ -13,7 +13,7 @@ object B {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val b = cm.moduleSymbol(classTag[B.BB.type].runtimeClass)
println(b)
println(b.info.decls.toList)
diff --git a/tests/pending/run/reflection-fancy-java-classes/Test_2.scala b/tests/pending/run/reflection-fancy-java-classes/Test_2.scala
index 4dbf28552..2a98b1d37 100644
--- a/tests/pending/run/reflection-fancy-java-classes/Test_2.scala
+++ b/tests/pending/run/reflection-fancy-java-classes/Test_2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("===== JAVA POV =====")
val jfancy = Class.forName("Foo_1$1")
println(jfancy)
diff --git a/tests/pending/run/reflection-fieldmirror-accessorsareokay.scala b/tests/pending/run/reflection-fieldmirror-accessorsareokay.scala
index 0e75dcf7e..9e68104e0 100644
--- a/tests/pending/run/reflection-fieldmirror-accessorsareokay.scala
+++ b/tests/pending/run/reflection-fieldmirror-accessorsareokay.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A {
var x: Int = 42
}
diff --git a/tests/pending/run/reflection-fieldmirror-ctorparam.scala b/tests/pending/run/reflection-fieldmirror-ctorparam.scala
index b5b6b2102..20a13ba19 100644
--- a/tests/pending/run/reflection-fieldmirror-ctorparam.scala
+++ b/tests/pending/run/reflection-fieldmirror-ctorparam.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A(x: Int) {
private[this] var xx = x
}
diff --git a/tests/pending/run/reflection-fieldmirror-getsetval.scala b/tests/pending/run/reflection-fieldmirror-getsetval.scala
index 4fe0d2e4f..94a83ddb1 100644
--- a/tests/pending/run/reflection-fieldmirror-getsetval.scala
+++ b/tests/pending/run/reflection-fieldmirror-getsetval.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A {
val x: Int = 42
}
diff --git a/tests/pending/run/reflection-fieldmirror-getsetvar.scala b/tests/pending/run/reflection-fieldmirror-getsetvar.scala
index c64b0c46c..486ac26e7 100644
--- a/tests/pending/run/reflection-fieldmirror-getsetvar.scala
+++ b/tests/pending/run/reflection-fieldmirror-getsetvar.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A {
var x: Int = 42
}
diff --git a/tests/pending/run/reflection-fieldmirror-nmelocalsuffixstring.scala b/tests/pending/run/reflection-fieldmirror-nmelocalsuffixstring.scala
index ddc6c42e7..bc45ba0dd 100644
--- a/tests/pending/run/reflection-fieldmirror-nmelocalsuffixstring.scala
+++ b/tests/pending/run/reflection-fieldmirror-nmelocalsuffixstring.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A {
var x: Int = 42
}
diff --git a/tests/pending/run/reflection-fieldmirror-privatethis.scala b/tests/pending/run/reflection-fieldmirror-privatethis.scala
index 1ece46576..f6b65fe9b 100644
--- a/tests/pending/run/reflection-fieldmirror-privatethis.scala
+++ b/tests/pending/run/reflection-fieldmirror-privatethis.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A {
private[this] var x: Int = 42
}
diff --git a/tests/pending/run/reflection-fieldsymbol-navigation.scala b/tests/pending/run/reflection-fieldsymbol-navigation.scala
index 924d97f5e..d3a5a0dc6 100644
--- a/tests/pending/run/reflection-fieldsymbol-navigation.scala
+++ b/tests/pending/run/reflection-fieldsymbol-navigation.scala
@@ -4,7 +4,7 @@ class C {
var x = 2
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = typeOf[C].member(TermName("x")).asTerm
println(x)
println(x.isVar)
diff --git a/tests/pending/run/reflection-idtc.scala b/tests/pending/run/reflection-idtc.scala
index c2b0347c7..c61b57b56 100644
--- a/tests/pending/run/reflection-idtc.scala
+++ b/tests/pending/run/reflection-idtc.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val idsym = tb.typecheck(q"type Id[X] = X").symbol.asType
val idTC1 = idsym.info
diff --git a/tests/pending/run/reflection-implClass.scala b/tests/pending/run/reflection-implClass.scala
index 4242530dd..8e91db9a7 100644
--- a/tests/pending/run/reflection-implClass.scala
+++ b/tests/pending/run/reflection-implClass.scala
@@ -5,7 +5,7 @@
* that exposes Java reflection information dressed up in
* a Scala symbol.
*/
-object Test extends App with Outer {
+object Test extends dotty.runtime.LegacyApp with Outer {
import scala.reflect.{ClassTag, classTag}
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
diff --git a/tests/pending/run/reflection-implicit.scala b/tests/pending/run/reflection-implicit.scala
index 1e104d1e5..5523545bf 100644
--- a/tests/pending/run/reflection-implicit.scala
+++ b/tests/pending/run/reflection-implicit.scala
@@ -8,7 +8,7 @@ class C {
implicit class X(val x: Int)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val decls = typeOf[C].typeSymbol.info.decls.sorted.toList.filter(sym => !sym.isTerm || (sym.isMethod && !sym.asMethod.isConstructor))
println(decls map (_.isImplicit))
val param = decls.find(_.name.toString == "d").get.asMethod.paramLists.last.head
diff --git a/tests/pending/run/reflection-java-annotations/Test_2.scala b/tests/pending/run/reflection-java-annotations/Test_2.scala
index dec5b45ca..3623b6bbb 100644
--- a/tests/pending/run/reflection-java-annotations/Test_2.scala
+++ b/tests/pending/run/reflection-java-annotations/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
val sym = typeOf[JavaAnnottee_1].typeSymbol
sym.info
diff --git a/tests/pending/run/reflection-java-crtp/Main_2.scala b/tests/pending/run/reflection-java-crtp/Main_2.scala
index b9347869e..0ebac1c57 100644
--- a/tests/pending/run/reflection-java-crtp/Main_2.scala
+++ b/tests/pending/run/reflection-java-crtp/Main_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
val enum = typeOf[JavaSimpleEnumeration_1].baseClasses(1).asClass
// make sure that the E's in Enum<E extends Enum<E>> are represented by the same symbol
diff --git a/tests/pending/run/reflection-magicsymbols-invoke.scala b/tests/pending/run/reflection-magicsymbols-invoke.scala
index 1fff85171..bbcf8f524 100644
--- a/tests/pending/run/reflection-magicsymbols-invoke.scala
+++ b/tests/pending/run/reflection-magicsymbols-invoke.scala
@@ -8,7 +8,7 @@ package scala {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def key(sym: Symbol) = sym + ": " + sym.info
def test(tpe: Type, receiver: Any, method: String, args: Any*): Unit = {
def wrap[T](op: => T) =
diff --git a/tests/pending/run/reflection-magicsymbols-vanilla.scala b/tests/pending/run/reflection-magicsymbols-vanilla.scala
index 328caf945..3de2a5529 100644
--- a/tests/pending/run/reflection-magicsymbols-vanilla.scala
+++ b/tests/pending/run/reflection-magicsymbols-vanilla.scala
@@ -11,7 +11,7 @@ class A {
def foo8(x: Singleton) = ???
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
def test(n: Int): Unit = {
val sig = typeOf[A] member TermName("foo" + n) info
diff --git a/tests/pending/run/reflection-methodsymbol-params.scala b/tests/pending/run/reflection-methodsymbol-params.scala
index d8d76b2db..bbf578ecb 100644
--- a/tests/pending/run/reflection-methodsymbol-params.scala
+++ b/tests/pending/run/reflection-methodsymbol-params.scala
@@ -12,7 +12,7 @@ class C {
def y4[T](x: Int)(y: Int): Int = ???
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(typeOf[C].member(TermName("x1")).asMethod.paramLists)
println(typeOf[C].member(TermName("x2")).asMethod.paramLists)
println(typeOf[C].member(TermName("x3")).asMethod.paramLists)
diff --git a/tests/pending/run/reflection-methodsymbol-returntype.scala b/tests/pending/run/reflection-methodsymbol-returntype.scala
index 7cf5aa0c1..d242d6941 100644
--- a/tests/pending/run/reflection-methodsymbol-returntype.scala
+++ b/tests/pending/run/reflection-methodsymbol-returntype.scala
@@ -12,7 +12,7 @@ class C {
def y4[T](x: Int)(y: Int): Int = ???
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(typeOf[C].member(TermName("x1")).asMethod.returnType)
println(typeOf[C].member(TermName("x2")).asMethod.returnType)
println(typeOf[C].member(TermName("x3")).asMethod.returnType)
diff --git a/tests/pending/run/reflection-methodsymbol-typeparams.scala b/tests/pending/run/reflection-methodsymbol-typeparams.scala
index 51b52b24c..4aa2454eb 100644
--- a/tests/pending/run/reflection-methodsymbol-typeparams.scala
+++ b/tests/pending/run/reflection-methodsymbol-typeparams.scala
@@ -12,7 +12,7 @@ class C {
def y4[T](x: Int)(y: Int): Int = ???
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(typeOf[C].member(TermName("x1")).asMethod.typeParams)
println(typeOf[C].member(TermName("x2")).asMethod.typeParams)
println(typeOf[C].member(TermName("x3")).asMethod.typeParams)
diff --git a/tests/pending/run/reflection-modulemirror-inner-badpath.scala b/tests/pending/run/reflection-modulemirror-inner-badpath.scala
index 6ecb4234f..94c3c5e7b 100644
--- a/tests/pending/run/reflection-modulemirror-inner-badpath.scala
+++ b/tests/pending/run/reflection-modulemirror-inner-badpath.scala
@@ -18,7 +18,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println(foo.foo)
}
diff --git a/tests/pending/run/reflection-modulemirror-inner-good.scala b/tests/pending/run/reflection-modulemirror-inner-good.scala
index ec66c9160..8d115d76a 100644
--- a/tests/pending/run/reflection-modulemirror-inner-good.scala
+++ b/tests/pending/run/reflection-modulemirror-inner-good.scala
@@ -17,7 +17,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println(foo.foo)
}
diff --git a/tests/pending/run/reflection-modulemirror-nested-badpath.scala b/tests/pending/run/reflection-modulemirror-nested-badpath.scala
index 43cae00f9..d957e45ad 100644
--- a/tests/pending/run/reflection-modulemirror-nested-badpath.scala
+++ b/tests/pending/run/reflection-modulemirror-nested-badpath.scala
@@ -19,7 +19,7 @@ class Foo{
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
object R { override def toString = "R" }
val foo = new Foo
println(foo.foo)
diff --git a/tests/pending/run/reflection-modulemirror-nested-good.scala b/tests/pending/run/reflection-modulemirror-nested-good.scala
index cc123dbec..a165ecfdf 100644
--- a/tests/pending/run/reflection-modulemirror-nested-good.scala
+++ b/tests/pending/run/reflection-modulemirror-nested-good.scala
@@ -17,7 +17,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
object R { override def toString = "R" }
val foo = new Foo
println(foo.foo)
diff --git a/tests/pending/run/reflection-modulemirror-toplevel-badpath.scala b/tests/pending/run/reflection-modulemirror-toplevel-badpath.scala
index 9fc69599f..35df3eeb1 100644
--- a/tests/pending/run/reflection-modulemirror-toplevel-badpath.scala
+++ b/tests/pending/run/reflection-modulemirror-toplevel-badpath.scala
@@ -20,7 +20,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println(foo.foo)
}
diff --git a/tests/pending/run/reflection-modulemirror-toplevel-good.scala b/tests/pending/run/reflection-modulemirror-toplevel-good.scala
index 6ca1071dd..a278b728e 100644
--- a/tests/pending/run/reflection-modulemirror-toplevel-good.scala
+++ b/tests/pending/run/reflection-modulemirror-toplevel-good.scala
@@ -14,7 +14,7 @@ class Foo{
}
}
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val foo = new Foo
println(foo.foo)
}
diff --git a/tests/pending/run/reflection-sanitychecks.scala b/tests/pending/run/reflection-sanitychecks.scala
index 47dfcdcc2..9febed474 100644
--- a/tests/pending/run/reflection-sanitychecks.scala
+++ b/tests/pending/run/reflection-sanitychecks.scala
@@ -24,7 +24,7 @@ class E {
override def toString = "an instance of class E"
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
val im = cm.reflect(new D)
diff --git a/tests/pending/run/reflection-scala-annotations.scala b/tests/pending/run/reflection-scala-annotations.scala
index f6a6895ee..d95f05fcb 100644
--- a/tests/pending/run/reflection-scala-annotations.scala
+++ b/tests/pending/run/reflection-scala-annotations.scala
@@ -10,7 +10,7 @@ class S
@jann(y = Array(1, 2), x = 2)
class J
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(symbolOf[S].annotations.head.tree)
println(symbolOf[J].annotations.head.tree)
}
diff --git a/tests/pending/run/reflection-sync-potpourri.scala b/tests/pending/run/reflection-sync-potpourri.scala
index 0af48bb20..14e7f281b 100644
--- a/tests/pending/run/reflection-sync-potpourri.scala
+++ b/tests/pending/run/reflection-sync-potpourri.scala
@@ -5,7 +5,7 @@ import scala.reflect.runtime.universe._
// 2) symbols are correctly materialized into PackageScopes (no dupes)
// 3) unpickling works okay even we unpickle the same symbol a lot of times
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[T: TypeTag](x: T) = typeOf[T].toString
val n = 1000
val rng = new scala.util.Random()
diff --git a/tests/pending/run/reflection-sync-subtypes.scala b/tests/pending/run/reflection-sync-subtypes.scala
index bcfb24ebb..1542b816f 100644
--- a/tests/pending/run/reflection-sync-subtypes.scala
+++ b/tests/pending/run/reflection-sync-subtypes.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val n = 1000
val rng = new scala.util.Random()
val tasks = List(
diff --git a/tests/pending/run/reflection-tags.scala b/tests/pending/run/reflection-tags.scala
index 54b561b57..6f10519eb 100644
--- a/tests/pending/run/reflection-tags.scala
+++ b/tests/pending/run/reflection-tags.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var typeMembers = typeOf[scala.reflect.api.Universe].members.filter(sym => sym.isType && !sym.isClass).toList
typeMembers = typeMembers.filter(_.name != TypeName("ModifiersCreator")) // type ModifiersCreator = ModifiersExtractor
typeMembers = typeMembers.filter(_.name != TypeName("Importer")) // deprecated
diff --git a/tests/pending/run/reflection-valueclasses-derived.scala b/tests/pending/run/reflection-valueclasses-derived.scala
index 8c03c2aab..2121e260a 100644
--- a/tests/pending/run/reflection-valueclasses-derived.scala
+++ b/tests/pending/run/reflection-valueclasses-derived.scala
@@ -5,7 +5,7 @@ class C(val x: Int) extends AnyVal {
def foo(y: Int) = x + y
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(cm.reflect(new C(2)).reflectMethod(typeOf[C].member(TermName("foo")).asMethod)(2))
println(cm.reflect(new C(2)).reflectMethod(typeOf[C].member(TermName("getClass")).asMethod)())
println(cm.reflect(new C(2)).reflectMethod(typeOf[C].member(TermName("toString")).asMethod)())
diff --git a/tests/pending/run/reflection-valueclasses-magic.scala b/tests/pending/run/reflection-valueclasses-magic.scala
index e045b882f..ef128a82d 100644
--- a/tests/pending/run/reflection-valueclasses-magic.scala
+++ b/tests/pending/run/reflection-valueclasses-magic.scala
@@ -9,7 +9,7 @@ package scala {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def key(sym: Symbol) = {
sym match {
// initialize parameter symbols
diff --git a/tests/pending/run/reflection-valueclasses-standard.scala b/tests/pending/run/reflection-valueclasses-standard.scala
index 74719dcf5..692c768f2 100644
--- a/tests/pending/run/reflection-valueclasses-standard.scala
+++ b/tests/pending/run/reflection-valueclasses-standard.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test[T: ClassTag: TypeTag](x: T) = {
println(s"========${classTag[T].runtimeClass}========")
println(cm.reflect(x).reflectMethod(typeOf[T].member(TermName("getClass")).asMethod)())
diff --git a/tests/pending/run/reflinit.scala b/tests/pending/run/reflinit.scala
index 979dfb380..ae9ca407e 100644
--- a/tests/pending/run/reflinit.scala
+++ b/tests/pending/run/reflinit.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tt2 = typeOf[List[Int]]
println(tt2)
}
diff --git a/tests/pending/run/reify-aliases.scala b/tests/pending/run/reify-aliases.scala
index 31141f3ac..0b1d70655 100644
--- a/tests/pending/run/reify-aliases.scala
+++ b/tests/pending/run/reify-aliases.scala
@@ -1,5 +1,5 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(showRaw(typeOf[String]))
}
diff --git a/tests/pending/run/reify-staticXXX.scala b/tests/pending/run/reify-staticXXX.scala
index e80157dd8..cfbd756ec 100644
--- a/tests/pending/run/reify-staticXXX.scala
+++ b/tests/pending/run/reify-staticXXX.scala
@@ -50,7 +50,7 @@ package packageful {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
packageless.test
packageful.Test.test
}
diff --git a/tests/pending/run/reify_ann1a.scala b/tests/pending/run/reify_ann1a.scala
index 1078514ea..9252ddcf7 100644
--- a/tests/pending/run/reify_ann1a.scala
+++ b/tests/pending/run/reify_ann1a.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
class ann(bar: List[String]) extends annotation.StaticAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
@ann(bar=List("1a")) @ann(bar=List("1b")) class C[@ann(bar=List("2a")) @ann(bar=List("2b")) T](@ann(bar=List("3a")) @ann(bar=List("3b")) x: T @ann(bar=List("4a")) @ann(bar=List("4b"))) {
diff --git a/tests/pending/run/reify_ann1b.scala b/tests/pending/run/reify_ann1b.scala
index 847120edb..d3c6a4da3 100644
--- a/tests/pending/run/reify_ann1b.scala
+++ b/tests/pending/run/reify_ann1b.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
class ann(bar: String) extends annotation.ClassfileAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
@ann(bar="1a") @ann(bar="1b") class C[@ann(bar="2a") @ann(bar="2b") T](@ann(bar="3a") @ann(bar="3b") x: T @ann(bar="4a") @ann(bar="4b")) {
diff --git a/tests/pending/run/reify_ann2a.scala b/tests/pending/run/reify_ann2a.scala
index 7ae2dc48d..861cb6297 100644
--- a/tests/pending/run/reify_ann2a.scala
+++ b/tests/pending/run/reify_ann2a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
class ann(bar: List[String]) extends annotation.StaticAnnotation
diff --git a/tests/pending/run/reify_ann3.scala b/tests/pending/run/reify_ann3.scala
index be9f9c8e9..7eadd569b 100644
--- a/tests/pending/run/reify_ann3.scala
+++ b/tests/pending/run/reify_ann3.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
import scala.annotation._
import scala.annotation.meta._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
class Tree[A, +B](@(inline @getter) final val key: A)
diff --git a/tests/pending/run/reify_ann4.scala b/tests/pending/run/reify_ann4.scala
index 6ba4b8c21..074ceb815 100644
--- a/tests/pending/run/reify_ann4.scala
+++ b/tests/pending/run/reify_ann4.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
import scala.annotation._
import scala.annotation.meta._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
class D extends StaticAnnotation
diff --git a/tests/pending/run/reify_ann5.scala b/tests/pending/run/reify_ann5.scala
index 3cc355249..84e5bda9c 100644
--- a/tests/pending/run/reify_ann5.scala
+++ b/tests/pending/run/reify_ann5.scala
@@ -6,7 +6,7 @@ import scala.annotation._
import scala.annotation.meta._
import scala.beans._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
class C(@BeanProperty @(inline @beanGetter) val x: Int)
diff --git a/tests/pending/run/reify_anonymous.scala b/tests/pending/run/reify_anonymous.scala
index f2e9a5023..a7aad4065 100644
--- a/tests/pending/run/reify_anonymous.scala
+++ b/tests/pending/run/reify_anonymous.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
println(new {def x = 2; def y = x * x}.y)
}.eval
diff --git a/tests/pending/run/reify_classfileann_a.scala b/tests/pending/run/reify_classfileann_a.scala
index 7df81f2b5..74546df37 100644
--- a/tests/pending/run/reify_classfileann_a.scala
+++ b/tests/pending/run/reify_classfileann_a.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
class ann(bar: String, quux: Array[String] = Array(), baz: ann = null) extends annotation.ClassfileAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
@ann(bar="1", quux=Array("2", "3"), baz = new ann(bar = "4")) class C
diff --git a/tests/pending/run/reify_classfileann_b.scala b/tests/pending/run/reify_classfileann_b.scala
index 8ddab9bc5..920d671f9 100644
--- a/tests/pending/run/reify_classfileann_b.scala
+++ b/tests/pending/run/reify_classfileann_b.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
class ann(bar: String, quux: Array[String] = Array(), baz: ann = null) extends annotation.ClassfileAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{
class C {
diff --git a/tests/pending/run/reify_closure1.scala b/tests/pending/run/reify_closure1.scala
index 0652cff8c..6a5684b2a 100644
--- a/tests/pending/run/reify_closure1.scala
+++ b/tests/pending/run/reify_closure1.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[T](ys: List[T]): Int => Int = {
val fun = reify{(x: Int) => {
x
diff --git a/tests/pending/run/reify_closure2a.scala b/tests/pending/run/reify_closure2a.scala
index fa66ef697..cc194bc6d 100644
--- a/tests/pending/run/reify_closure2a.scala
+++ b/tests/pending/run/reify_closure2a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(y: Int): Int => Int = {
val fun = reify{(x: Int) => {
x + y
diff --git a/tests/pending/run/reify_closure3a.scala b/tests/pending/run/reify_closure3a.scala
index 945416c05..0d540d1dd 100644
--- a/tests/pending/run/reify_closure3a.scala
+++ b/tests/pending/run/reify_closure3a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(y: Int): Int => Int = {
def y1 = y
diff --git a/tests/pending/run/reify_closure4a.scala b/tests/pending/run/reify_closure4a.scala
index 6e7cce7de..373c3b2fa 100644
--- a/tests/pending/run/reify_closure4a.scala
+++ b/tests/pending/run/reify_closure4a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(y: Int): Int => Int = {
val y1 = y
diff --git a/tests/pending/run/reify_closure5a.scala b/tests/pending/run/reify_closure5a.scala
index f8a39ee2e..e2bd24ad2 100644
--- a/tests/pending/run/reify_closure5a.scala
+++ b/tests/pending/run/reify_closure5a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo[T: TypeTag](ys: List[T]): Int => Int = {
val fun = reify{(x: Int) => {
x + ys.length
diff --git a/tests/pending/run/reify_closure6.scala b/tests/pending/run/reify_closure6.scala
index beaf17e6c..1c3589cdf 100644
--- a/tests/pending/run/reify_closure6.scala
+++ b/tests/pending/run/reify_closure6.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var q = 0
def foo[T: TypeTag](ys: List[T]): Int => Int = {
val z = 1
diff --git a/tests/pending/run/reify_closure7.scala b/tests/pending/run/reify_closure7.scala
index 7c0ff0b28..93f2f22a4 100644
--- a/tests/pending/run/reify_closure7.scala
+++ b/tests/pending/run/reify_closure7.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var q = 0
var clo: Int => Int = null
def foo[T: TypeTag](ys: List[T]): Int => Int = {
diff --git a/tests/pending/run/reify_closure8a.scala b/tests/pending/run/reify_closure8a.scala
index 150db0f5c..ad343dd15 100644
--- a/tests/pending/run/reify_closure8a.scala
+++ b/tests/pending/run/reify_closure8a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Foo(val y: Int) {
def fun = reify{y}
}
diff --git a/tests/pending/run/reify_closure8b.scala b/tests/pending/run/reify_closure8b.scala
index b5322896f..f28b18e01 100644
--- a/tests/pending/run/reify_closure8b.scala
+++ b/tests/pending/run/reify_closure8b.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// will fail because y is a private field
// reification doesn't magically make unavailable stuff available
class Foo(y: Int) {
diff --git a/tests/pending/run/reify_closures10.scala b/tests/pending/run/reify_closures10.scala
index cd25453b8..9c486e436 100644
--- a/tests/pending/run/reify_closures10.scala
+++ b/tests/pending/run/reify_closures10.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
val y = 3
val code = reify{println(x + y); x + y}
diff --git a/tests/pending/run/reify_complex.scala b/tests/pending/run/reify_complex.scala
index 885a6323b..45b72d899 100644
--- a/tests/pending/run/reify_complex.scala
+++ b/tests/pending/run/reify_complex.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class Complex(val re: Double, val im: Double) {
def + (that: Complex) =
diff --git a/tests/pending/run/reify_copypaste1.scala b/tests/pending/run/reify_copypaste1.scala
index 12cc7dfe1..e255403ad 100644
--- a/tests/pending/run/reify_copypaste1.scala
+++ b/tests/pending/run/reify_copypaste1.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.universe.definitions._
import scala.reflect.runtime.universe.Flag._
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val stdout = System.out
val output = new java.io.ByteArrayOutputStream()
System.setOut(new java.io.PrintStream(output))
diff --git a/tests/pending/run/reify_copypaste2.scala b/tests/pending/run/reify_copypaste2.scala
index e64a729df..2f9bea1fe 100644
--- a/tests/pending/run/reify_copypaste2.scala
+++ b/tests/pending/run/reify_copypaste2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
val outer = reify{reify{x}}
println(outer.tree)
diff --git a/tests/pending/run/reify_csv.scala b/tests/pending/run/reify_csv.scala
index c35624469..1c567c904 100644
--- a/tests/pending/run/reify_csv.scala
+++ b/tests/pending/run/reify_csv.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val csv = """
| phase name; id; description
| parser; 1; parse source into ASTs, perform simple desugaring
diff --git a/tests/pending/run/reify_extendbuiltins.scala b/tests/pending/run/reify_extendbuiltins.scala
index 46d5b7e55..3056db6e4 100644
--- a/tests/pending/run/reify_extendbuiltins.scala
+++ b/tests/pending/run/reify_extendbuiltins.scala
@@ -3,7 +3,7 @@ import scala.language.{ implicitConversions, postfixOps }
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
def fact(n: Int): BigInt =
if (n == 0) 1 else fact(n-1) * n
diff --git a/tests/pending/run/reify_for1.scala b/tests/pending/run/reify_for1.scala
index e0d7e41bc..1233782ad 100644
--- a/tests/pending/run/reify_for1.scala
+++ b/tests/pending/run/reify_for1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val sumOfSquares1 = (for (i <- 1 to 100; if (i % 3 == 0)) yield Math.pow(i, 2)).sum
val sumOfSquares2 = (1 to 100).filter(_ % 3 == 0).map(Math.pow(_, 2)).sum
diff --git a/tests/pending/run/reify_fors_newpatmat.scala b/tests/pending/run/reify_fors_newpatmat.scala
index e01f0f6c6..d366169a4 100644
--- a/tests/pending/run/reify_fors_newpatmat.scala
+++ b/tests/pending/run/reify_fors_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object Persons {
/** A list of persons. To create a list, we use Predef.List
diff --git a/tests/pending/run/reify_fors_oldpatmat.scala b/tests/pending/run/reify_fors_oldpatmat.scala
index e01f0f6c6..d366169a4 100644
--- a/tests/pending/run/reify_fors_oldpatmat.scala
+++ b/tests/pending/run/reify_fors_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object Persons {
/** A list of persons. To create a list, we use Predef.List
diff --git a/tests/pending/run/reify_generic.scala b/tests/pending/run/reify_generic.scala
index 35a46f686..4221dbf6c 100644
--- a/tests/pending/run/reify_generic.scala
+++ b/tests/pending/run/reify_generic.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val product = List(1, 2, 3).head * List[Any](4, 2, 0).head.asInstanceOf[Int]
println(product)
diff --git a/tests/pending/run/reify_generic2.scala b/tests/pending/run/reify_generic2.scala
index 0582f6aaa..6941d9ff7 100644
--- a/tests/pending/run/reify_generic2.scala
+++ b/tests/pending/run/reify_generic2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C
val product = List(new C, new C).length * List[C](new C, new C).length
diff --git a/tests/pending/run/reify_getter.scala b/tests/pending/run/reify_getter.scala
index 054baf108..18c9a1a32 100644
--- a/tests/pending/run/reify_getter.scala
+++ b/tests/pending/run/reify_getter.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
class C {
val x = 2
diff --git a/tests/pending/run/reify_implicits-new.scala b/tests/pending/run/reify_implicits-new.scala
index 1d90d907e..5ff90871a 100644
--- a/tests/pending/run/reify_implicits-new.scala
+++ b/tests/pending/run/reify_implicits-new.scala
@@ -4,7 +4,7 @@ import scala.reflect.{ClassTag, classTag}
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
implicit def arrayWrapper[A : ClassTag](x: Array[A]) =
new {
diff --git a/tests/pending/run/reify_implicits-old.scala b/tests/pending/run/reify_implicits-old.scala
index a4e90488e..ccd9375d6 100644
--- a/tests/pending/run/reify_implicits-old.scala
+++ b/tests/pending/run/reify_implicits-old.scala
@@ -3,7 +3,7 @@ import scala.language.{ implicitConversions, reflectiveCalls }
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
implicit def arrayWrapper[A : ClassManifest](x: Array[A]) =
new {
diff --git a/tests/pending/run/reify_inheritance.scala b/tests/pending/run/reify_inheritance.scala
index bbd0a46e4..f4fb49edc 100644
--- a/tests/pending/run/reify_inheritance.scala
+++ b/tests/pending/run/reify_inheritance.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C {
def x = 2
diff --git a/tests/pending/run/reify_inner1.scala b/tests/pending/run/reify_inner1.scala
index 9238bbb73..bae49f910 100644
--- a/tests/pending/run/reify_inner1.scala
+++ b/tests/pending/run/reify_inner1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C {
class D {
diff --git a/tests/pending/run/reify_inner2.scala b/tests/pending/run/reify_inner2.scala
index 6616bae72..fbe54b072 100644
--- a/tests/pending/run/reify_inner2.scala
+++ b/tests/pending/run/reify_inner2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C {
object D {
diff --git a/tests/pending/run/reify_inner3.scala b/tests/pending/run/reify_inner3.scala
index 859b63f94..004041b7d 100644
--- a/tests/pending/run/reify_inner3.scala
+++ b/tests/pending/run/reify_inner3.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object C {
class D {
diff --git a/tests/pending/run/reify_inner4.scala b/tests/pending/run/reify_inner4.scala
index e2fc921c5..5292cf040 100644
--- a/tests/pending/run/reify_inner4.scala
+++ b/tests/pending/run/reify_inner4.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object C {
object D {
diff --git a/tests/pending/run/reify_lazyevaluation.scala b/tests/pending/run/reify_lazyevaluation.scala
index 3f2530dde..564e7f1cd 100644
--- a/tests/pending/run/reify_lazyevaluation.scala
+++ b/tests/pending/run/reify_lazyevaluation.scala
@@ -3,7 +3,7 @@ import scala.language.{ implicitConversions }
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object lazyLib {
diff --git a/tests/pending/run/reify_lazyunit.scala b/tests/pending/run/reify_lazyunit.scala
index 78b00cde2..70caf4f33 100644
--- a/tests/pending/run/reify_lazyunit.scala
+++ b/tests/pending/run/reify_lazyunit.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
lazy val x = { 0; println("12")}
x
diff --git a/tests/pending/run/reify_magicsymbols.scala b/tests/pending/run/reify_magicsymbols.scala
index 54a6eab9c..9d4e06b8a 100644
--- a/tests/pending/run/reify_magicsymbols.scala
+++ b/tests/pending/run/reify_magicsymbols.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(typeOf[Any])
println(typeOf[AnyVal])
println(typeOf[AnyRef])
diff --git a/tests/pending/run/reify_maps_newpatmat.scala b/tests/pending/run/reify_maps_newpatmat.scala
index 57c9d560a..18adb5c36 100644
--- a/tests/pending/run/reify_maps_newpatmat.scala
+++ b/tests/pending/run/reify_maps_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val colors = Map("red" -> 0xFF0000,
"turquoise" -> 0x00FFFF,
diff --git a/tests/pending/run/reify_maps_oldpatmat.scala b/tests/pending/run/reify_maps_oldpatmat.scala
index 57c9d560a..18adb5c36 100644
--- a/tests/pending/run/reify_maps_oldpatmat.scala
+++ b/tests/pending/run/reify_maps_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val colors = Map("red" -> 0xFF0000,
"turquoise" -> 0x00FFFF,
diff --git a/tests/pending/run/reify_metalevel_breach_+0_refers_to_1.scala b/tests/pending/run/reify_metalevel_breach_+0_refers_to_1.scala
index 3ca47c436..2f930c25e 100644
--- a/tests/pending/run/reify_metalevel_breach_+0_refers_to_1.scala
+++ b/tests/pending/run/reify_metalevel_breach_+0_refers_to_1.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify{
val x = 2
val inner = reify{x}
diff --git a/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_a.scala b/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_a.scala
index a8b45b3a4..526ed3d13 100644
--- a/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_a.scala
+++ b/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_a.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
val outer = reify{reify{x}}
// was: val code = reify{outer.splice.splice}
diff --git a/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_b.scala b/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_b.scala
index 7378774ba..96793c634 100644
--- a/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_b.scala
+++ b/tests/pending/run/reify_metalevel_breach_-1_refers_to_0_b.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
val code = reify{
{
diff --git a/tests/pending/run/reify_metalevel_breach_-1_refers_to_1.scala b/tests/pending/run/reify_metalevel_breach_-1_refers_to_1.scala
index f2fb53400..0fc985b6a 100644
--- a/tests/pending/run/reify_metalevel_breach_-1_refers_to_1.scala
+++ b/tests/pending/run/reify_metalevel_breach_-1_refers_to_1.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify{
val x = 2
val inner = reify{reify{x}}
diff --git a/tests/pending/run/reify_nested_inner_refers_to_global.scala b/tests/pending/run/reify_nested_inner_refers_to_global.scala
index e98457329..41d378e91 100644
--- a/tests/pending/run/reify_nested_inner_refers_to_global.scala
+++ b/tests/pending/run/reify_nested_inner_refers_to_global.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = {
val x = 2
reify{
diff --git a/tests/pending/run/reify_nested_inner_refers_to_local.scala b/tests/pending/run/reify_nested_inner_refers_to_local.scala
index 802071ffb..102278c84 100644
--- a/tests/pending/run/reify_nested_inner_refers_to_local.scala
+++ b/tests/pending/run/reify_nested_inner_refers_to_local.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify{
val x = 2
// was: reify{x}.eval
diff --git a/tests/pending/run/reify_nested_outer_refers_to_global.scala b/tests/pending/run/reify_nested_outer_refers_to_global.scala
index 374f8a536..bff5dc407 100644
--- a/tests/pending/run/reify_nested_outer_refers_to_global.scala
+++ b/tests/pending/run/reify_nested_outer_refers_to_global.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = {
val x = 2
val outer = reify{x}
diff --git a/tests/pending/run/reify_nested_outer_refers_to_local.scala b/tests/pending/run/reify_nested_outer_refers_to_local.scala
index 2d6fd6417..70c400bc2 100644
--- a/tests/pending/run/reify_nested_outer_refers_to_local.scala
+++ b/tests/pending/run/reify_nested_outer_refers_to_local.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = {
val x = 2
reify{x}
diff --git a/tests/pending/run/reify_newimpl_01.scala b/tests/pending/run/reify_newimpl_01.scala
index 20167da16..1a5f96b53 100644
--- a/tests/pending/run/reify_newimpl_01.scala
+++ b/tests/pending/run/reify_newimpl_01.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 2
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_02.scala b/tests/pending/run/reify_newimpl_02.scala
index 4d72c7809..1ef3f03ed 100644
--- a/tests/pending/run/reify_newimpl_02.scala
+++ b/tests/pending/run/reify_newimpl_02.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var x = 2
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_03.scala b/tests/pending/run/reify_newimpl_03.scala
index 2fbd89ccb..531bc76fe 100644
--- a/tests/pending/run/reify_newimpl_03.scala
+++ b/tests/pending/run/reify_newimpl_03.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val code = reify {
val x = 2
diff --git a/tests/pending/run/reify_newimpl_04.scala b/tests/pending/run/reify_newimpl_04.scala
index c75207b30..b6071f843 100644
--- a/tests/pending/run/reify_newimpl_04.scala
+++ b/tests/pending/run/reify_newimpl_04.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val code = reify {
var x = 2
diff --git a/tests/pending/run/reify_newimpl_05.scala b/tests/pending/run/reify_newimpl_05.scala
index 758a296e3..0ff5bb07c 100644
--- a/tests/pending/run/reify_newimpl_05.scala
+++ b/tests/pending/run/reify_newimpl_05.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val code = reify {
var x = 2
diff --git a/tests/pending/run/reify_newimpl_06.scala b/tests/pending/run/reify_newimpl_06.scala
index 49022e962..8743da100 100644
--- a/tests/pending/run/reify_newimpl_06.scala
+++ b/tests/pending/run/reify_newimpl_06.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C(val y: Int) {
val code = reify {
reify{y}.eval
diff --git a/tests/pending/run/reify_newimpl_11.scala b/tests/pending/run/reify_newimpl_11.scala
index 9cc15747d..bb08808c2 100644
--- a/tests/pending/run/reify_newimpl_11.scala
+++ b/tests/pending/run/reify_newimpl_11.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C[T] {
val code = reify {
List[T](2.asInstanceOf[T])
diff --git a/tests/pending/run/reify_newimpl_12.scala b/tests/pending/run/reify_newimpl_12.scala
index 739f6ff67..c2b9d42ca 100644
--- a/tests/pending/run/reify_newimpl_12.scala
+++ b/tests/pending/run/reify_newimpl_12.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C[T: TypeTag] {
val code = reify {
List[T](2.asInstanceOf[T])
diff --git a/tests/pending/run/reify_newimpl_13.scala b/tests/pending/run/reify_newimpl_13.scala
index 5aa14aa55..79a99c334 100644
--- a/tests/pending/run/reify_newimpl_13.scala
+++ b/tests/pending/run/reify_newimpl_13.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
class C[T] {
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_14.scala b/tests/pending/run/reify_newimpl_14.scala
index 547df10c0..af2c7f136 100644
--- a/tests/pending/run/reify_newimpl_14.scala
+++ b/tests/pending/run/reify_newimpl_14.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
class C[T: TypeTag] {
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_15.scala b/tests/pending/run/reify_newimpl_15.scala
index 504cdf7c7..4bcfc7107 100644
--- a/tests/pending/run/reify_newimpl_15.scala
+++ b/tests/pending/run/reify_newimpl_15.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C {
type T = Int
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_18.scala b/tests/pending/run/reify_newimpl_18.scala
index 7d6401c62..e60bed8c7 100644
--- a/tests/pending/run/reify_newimpl_18.scala
+++ b/tests/pending/run/reify_newimpl_18.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C[U: TypeTag] {
type T = U
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_19.scala b/tests/pending/run/reify_newimpl_19.scala
index eca455279..eaa6ca206 100644
--- a/tests/pending/run/reify_newimpl_19.scala
+++ b/tests/pending/run/reify_newimpl_19.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C {
type T
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_20.scala b/tests/pending/run/reify_newimpl_20.scala
index b5c649902..c483e0b7e 100644
--- a/tests/pending/run/reify_newimpl_20.scala
+++ b/tests/pending/run/reify_newimpl_20.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C {
type T
implicit val tt: TypeTag[T] = implicitly[TypeTag[Int]].asInstanceOf[TypeTag[T]]
diff --git a/tests/pending/run/reify_newimpl_21.scala b/tests/pending/run/reify_newimpl_21.scala
index ff78d9bb7..0875ede6b 100644
--- a/tests/pending/run/reify_newimpl_21.scala
+++ b/tests/pending/run/reify_newimpl_21.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait C {
type T
implicit val tt: TypeTag[T]
diff --git a/tests/pending/run/reify_newimpl_27.scala b/tests/pending/run/reify_newimpl_27.scala
index b9e95f5bd..332dbec91 100644
--- a/tests/pending/run/reify_newimpl_27.scala
+++ b/tests/pending/run/reify_newimpl_27.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object C {
type T = Int
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_29.scala b/tests/pending/run/reify_newimpl_29.scala
index ad4419bb6..1865075f4 100644
--- a/tests/pending/run/reify_newimpl_29.scala
+++ b/tests/pending/run/reify_newimpl_29.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C {
type T = Int
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_30.scala b/tests/pending/run/reify_newimpl_30.scala
index bc34f1bb6..afc199d50 100644
--- a/tests/pending/run/reify_newimpl_30.scala
+++ b/tests/pending/run/reify_newimpl_30.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.{ ToolBox, ToolBoxError }
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
class C {
type T = Int
diff --git a/tests/pending/run/reify_newimpl_31.scala b/tests/pending/run/reify_newimpl_31.scala
index 556617534..535c9b67b 100644
--- a/tests/pending/run/reify_newimpl_31.scala
+++ b/tests/pending/run/reify_newimpl_31.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object C {
type T = Int
val code = reify {
diff --git a/tests/pending/run/reify_newimpl_33.scala b/tests/pending/run/reify_newimpl_33.scala
index 523285445..55a808eda 100644
--- a/tests/pending/run/reify_newimpl_33.scala
+++ b/tests/pending/run/reify_newimpl_33.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object C {
type T = Int
val c = C
diff --git a/tests/pending/run/reify_newimpl_36.scala b/tests/pending/run/reify_newimpl_36.scala
index df4799803..19f8617c6 100644
--- a/tests/pending/run/reify_newimpl_36.scala
+++ b/tests/pending/run/reify_newimpl_36.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 42
def foo() = reify(reify(x));
diff --git a/tests/pending/run/reify_newimpl_37.scala b/tests/pending/run/reify_newimpl_37.scala
index c8ceba340..5eeda2125 100644
--- a/tests/pending/run/reify_newimpl_37.scala
+++ b/tests/pending/run/reify_newimpl_37.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 42
def foo() = reify(reify(reify(x)));
diff --git a/tests/pending/run/reify_newimpl_38.scala b/tests/pending/run/reify_newimpl_38.scala
index b3160f018..a313b7d8d 100644
--- a/tests/pending/run/reify_newimpl_38.scala
+++ b/tests/pending/run/reify_newimpl_38.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 42
def foo() = reify{ val y = x; reify(y) };
diff --git a/tests/pending/run/reify_newimpl_39.scala b/tests/pending/run/reify_newimpl_39.scala
index 0568eb482..4b779fc07 100644
--- a/tests/pending/run/reify_newimpl_39.scala
+++ b/tests/pending/run/reify_newimpl_39.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 42
def foo() = reify{ val y = x; reify{ val z = y; reify(z) } };
diff --git a/tests/pending/run/reify_newimpl_40.scala b/tests/pending/run/reify_newimpl_40.scala
index 0409f71ad..1bc37973f 100644
--- a/tests/pending/run/reify_newimpl_40.scala
+++ b/tests/pending/run/reify_newimpl_40.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val x = 42
def foo() = reify{ val y = x; reify{ val z = y * x; reify(z * x) } };
diff --git a/tests/pending/run/reify_newimpl_41.scala b/tests/pending/run/reify_newimpl_41.scala
index 5eb5e5780..514e206a3 100644
--- a/tests/pending/run/reify_newimpl_41.scala
+++ b/tests/pending/run/reify_newimpl_41.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var _x = 42
def x = { val x0 = _x; _x += 1; x0 }
diff --git a/tests/pending/run/reify_newimpl_42.scala b/tests/pending/run/reify_newimpl_42.scala
index 669932e42..64c1cf345 100644
--- a/tests/pending/run/reify_newimpl_42.scala
+++ b/tests/pending/run/reify_newimpl_42.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var _x = 42
def x = { val x0 = _x; _x += 1; x0 }
diff --git a/tests/pending/run/reify_newimpl_43.scala b/tests/pending/run/reify_newimpl_43.scala
index 823464015..736536cb3 100644
--- a/tests/pending/run/reify_newimpl_43.scala
+++ b/tests/pending/run/reify_newimpl_43.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var counter = 0
lazy val x = { counter += 1; counter }
diff --git a/tests/pending/run/reify_newimpl_44.scala b/tests/pending/run/reify_newimpl_44.scala
index 823464015..736536cb3 100644
--- a/tests/pending/run/reify_newimpl_44.scala
+++ b/tests/pending/run/reify_newimpl_44.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var counter = 0
lazy val x = { counter += 1; counter }
diff --git a/tests/pending/run/reify_newimpl_45.scala b/tests/pending/run/reify_newimpl_45.scala
index 148c3650a..cfda46a6a 100644
--- a/tests/pending/run/reify_newimpl_45.scala
+++ b/tests/pending/run/reify_newimpl_45.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import internal._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C[T >: Null] {
val code = reify{val x: T = "2".asInstanceOf[T]; println("ima worx: %s".format(x)); x}
println(freeTypes(code.tree))
diff --git a/tests/pending/run/reify_newimpl_47.scala b/tests/pending/run/reify_newimpl_47.scala
index b78189399..c0ad6cbe5 100644
--- a/tests/pending/run/reify_newimpl_47.scala
+++ b/tests/pending/run/reify_newimpl_47.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer = {
val x = 2
reify{x}
diff --git a/tests/pending/run/reify_newimpl_48.scala b/tests/pending/run/reify_newimpl_48.scala
index 5ad7eb961..7d1c1d642 100644
--- a/tests/pending/run/reify_newimpl_48.scala
+++ b/tests/pending/run/reify_newimpl_48.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val outer1 = {
val x = 2
reify{x}
diff --git a/tests/pending/run/reify_newimpl_49.scala b/tests/pending/run/reify_newimpl_49.scala
index 957c5bbde..61ddfafa3 100644
--- a/tests/pending/run/reify_newimpl_49.scala
+++ b/tests/pending/run/reify_newimpl_49.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var y = 1
def x = { y += 2; y }
diff --git a/tests/pending/run/reify_newimpl_50.scala b/tests/pending/run/reify_newimpl_50.scala
index 64d52eb50..8ecdeb55c 100644
--- a/tests/pending/run/reify_newimpl_50.scala
+++ b/tests/pending/run/reify_newimpl_50.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var y = 1
def x = { y += 2; y }
diff --git a/tests/pending/run/reify_newimpl_51.scala b/tests/pending/run/reify_newimpl_51.scala
index 011d9a6ce..8a4a325f0 100644
--- a/tests/pending/run/reify_newimpl_51.scala
+++ b/tests/pending/run/reify_newimpl_51.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var counter = 0
lazy val x = { counter += 1; counter }
diff --git a/tests/pending/run/reify_newimpl_52.scala b/tests/pending/run/reify_newimpl_52.scala
index 8b473ffcf..4dc82b145 100644
--- a/tests/pending/run/reify_newimpl_52.scala
+++ b/tests/pending/run/reify_newimpl_52.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
var counter = 0
lazy val x = { counter += 1; counter }
diff --git a/tests/pending/run/reify_printf.scala b/tests/pending/run/reify_printf.scala
index c4ade7983..b957c41bb 100644
--- a/tests/pending/run/reify_printf.scala
+++ b/tests/pending/run/reify_printf.scala
@@ -8,7 +8,7 @@ import scala.reflect.api.Trees
import scala.reflect.internal.Types
import scala.util.matching.Regex
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
//val output = new ByteArrayOutputStream()
//Console.setOut(new PrintStream(output))
val toolbox = cm.mkToolBox()
diff --git a/tests/pending/run/reify_properties.scala b/tests/pending/run/reify_properties.scala
index 01a9b12a9..b6ce5f305 100644
--- a/tests/pending/run/reify_properties.scala
+++ b/tests/pending/run/reify_properties.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
/** A mutable property whose getter and setter may be customized. */
case class Property[T](init: T) {
diff --git a/tests/pending/run/reify_renamed_term_basic.scala b/tests/pending/run/reify_renamed_term_basic.scala
index 563ce1e8c..7971d3d11 100644
--- a/tests/pending/run/reify_renamed_term_basic.scala
+++ b/tests/pending/run/reify_renamed_term_basic.scala
@@ -7,7 +7,7 @@ object A {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import A.{B => X}
import A.B.{c => y}
import X.{c => z}
diff --git a/tests/pending/run/reify_renamed_term_local_to_reifee.scala b/tests/pending/run/reify_renamed_term_local_to_reifee.scala
index 44725ff43..b93279376 100644
--- a/tests/pending/run/reify_renamed_term_local_to_reifee.scala
+++ b/tests/pending/run/reify_renamed_term_local_to_reifee.scala
@@ -7,7 +7,7 @@ object A {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val expr = reify {
import A.{B => X}
import A.B.{c => y}
diff --git a/tests/pending/run/reify_renamed_term_overloaded_method.scala b/tests/pending/run/reify_renamed_term_overloaded_method.scala
index a93c8f60f..1f7897679 100644
--- a/tests/pending/run/reify_renamed_term_overloaded_method.scala
+++ b/tests/pending/run/reify_renamed_term_overloaded_method.scala
@@ -6,7 +6,7 @@ object O {
def show(s: String) = s
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import O.{show => s}
val expr = reify {
diff --git a/tests/pending/run/reify_renamed_term_t5841.scala b/tests/pending/run/reify_renamed_term_t5841.scala
index 551d5afe5..d4c051c1b 100644
--- a/tests/pending/run/reify_renamed_term_t5841.scala
+++ b/tests/pending/run/reify_renamed_term_t5841.scala
@@ -2,6 +2,6 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(reify{ru}.eval.getClass)
}
diff --git a/tests/pending/run/reify_renamed_type_basic.scala b/tests/pending/run/reify_renamed_type_basic.scala
index 1666c9687..50506e144 100644
--- a/tests/pending/run/reify_renamed_type_basic.scala
+++ b/tests/pending/run/reify_renamed_type_basic.scala
@@ -5,7 +5,7 @@ object O {
type A = Unit
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import O.{A => X}
def expr = reify {
diff --git a/tests/pending/run/reify_renamed_type_local_to_reifee.scala b/tests/pending/run/reify_renamed_type_local_to_reifee.scala
index 56dfa881c..01280e993 100644
--- a/tests/pending/run/reify_renamed_type_local_to_reifee.scala
+++ b/tests/pending/run/reify_renamed_type_local_to_reifee.scala
@@ -5,7 +5,7 @@ object O {
type A = Unit
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val expr = reify {
import O.{A => X}
diff --git a/tests/pending/run/reify_renamed_type_spliceable.scala b/tests/pending/run/reify_renamed_type_spliceable.scala
index 73de3cc16..6a34d1722 100644
--- a/tests/pending/run/reify_renamed_type_spliceable.scala
+++ b/tests/pending/run/reify_renamed_type_spliceable.scala
@@ -5,7 +5,7 @@ abstract class C {
type T >: Null
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(c: C) = {
import c.{T => U}
reify {
diff --git a/tests/pending/run/reify_sort.scala b/tests/pending/run/reify_sort.scala
index 867f33c33..b484111ed 100644
--- a/tests/pending/run/reify_sort.scala
+++ b/tests/pending/run/reify_sort.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
/** Nested methods can use and even update everything
* visible in their scope (including local variables or
diff --git a/tests/pending/run/reify_sort1.scala b/tests/pending/run/reify_sort1.scala
index 27bf1ba28..24ca06283 100644
--- a/tests/pending/run/reify_sort1.scala
+++ b/tests/pending/run/reify_sort1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
def sort(a: List[Int]): List[Int] = {
if (a.length < 2)
diff --git a/tests/pending/run/reify_this.scala b/tests/pending/run/reify_this.scala
index c385da636..339fcca54 100644
--- a/tests/pending/run/reify_this.scala
+++ b/tests/pending/run/reify_this.scala
@@ -5,7 +5,7 @@ trait Transvaal {
def eval(tree: Expr[_]) = tree.eval
}
-object Test extends App with Transvaal {
+object Test extends dotty.runtime.LegacyApp with Transvaal {
// select a value from package
eval(reify{println("foo")})
eval(reify{println((new Object).toString == (new Object).toString)})
diff --git a/tests/pending/run/reify_timeofday.scala b/tests/pending/run/reify_timeofday.scala
index 44b428d7c..ff30a962b 100644
--- a/tests/pending/run/reify_timeofday.scala
+++ b/tests/pending/run/reify_timeofday.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class DateError extends Exception
diff --git a/tests/pending/run/reify_typerefs_1a.scala b/tests/pending/run/reify_typerefs_1a.scala
index a4ea4f923..b4f608a95 100644
--- a/tests/pending/run/reify_typerefs_1a.scala
+++ b/tests/pending/run/reify_typerefs_1a.scala
@@ -7,7 +7,7 @@ class Expression {
override def toString = "Expression"
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(new Expression, new Expression)
};
diff --git a/tests/pending/run/reify_typerefs_1b.scala b/tests/pending/run/reify_typerefs_1b.scala
index ecc8d2b9b..7c4d025f0 100644
--- a/tests/pending/run/reify_typerefs_1b.scala
+++ b/tests/pending/run/reify_typerefs_1b.scala
@@ -7,7 +7,7 @@ object Expression {
override def toString = "Expression"
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(Expression, Expression)
};
diff --git a/tests/pending/run/reify_typerefs_2a.scala b/tests/pending/run/reify_typerefs_2a.scala
index 3a3fcc41e..a2d5676c0 100644
--- a/tests/pending/run/reify_typerefs_2a.scala
+++ b/tests/pending/run/reify_typerefs_2a.scala
@@ -9,7 +9,7 @@ package foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(new foo.Expression, new foo.Expression)
};
diff --git a/tests/pending/run/reify_typerefs_2b.scala b/tests/pending/run/reify_typerefs_2b.scala
index 26c44d03c..f5543eaf6 100644
--- a/tests/pending/run/reify_typerefs_2b.scala
+++ b/tests/pending/run/reify_typerefs_2b.scala
@@ -9,7 +9,7 @@ package foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(foo.Expression, foo.Expression)
};
diff --git a/tests/pending/run/reify_typerefs_3a.scala b/tests/pending/run/reify_typerefs_3a.scala
index 217dab393..8d81721f1 100644
--- a/tests/pending/run/reify_typerefs_3a.scala
+++ b/tests/pending/run/reify_typerefs_3a.scala
@@ -9,7 +9,7 @@ object foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(new foo.Expression, new foo.Expression)
};
diff --git a/tests/pending/run/reify_typerefs_3b.scala b/tests/pending/run/reify_typerefs_3b.scala
index 2967c129f..212f40fc0 100644
--- a/tests/pending/run/reify_typerefs_3b.scala
+++ b/tests/pending/run/reify_typerefs_3b.scala
@@ -9,7 +9,7 @@ object foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
List(foo.Expression, foo.Expression)
};
diff --git a/tests/pending/run/reify_varargs.scala b/tests/pending/run/reify_varargs.scala
index d157149b4..36777fe98 100644
--- a/tests/pending/run/reify_varargs.scala
+++ b/tests/pending/run/reify_varargs.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val msg = java.text.MessageFormat.format(
"On {1} there was {2} on planet {0}.",
diff --git a/tests/pending/run/repl-javap-app.scala b/tests/pending/run/repl-javap-app.scala
index ad6076c2d..73fc82ece 100644
--- a/tests/pending/run/repl-javap-app.scala
+++ b/tests/pending/run/repl-javap-app.scala
@@ -1,7 +1,7 @@
import scala.tools.partest.ReplTest
-object MyApp extends App {
+object MyApp extends dotty.runtime.LegacyApp {
Console println "Hello, delayed world."
}
diff --git a/tests/pending/run/resetattrs-this.scala b/tests/pending/run/resetattrs-this.scala
index ff45d61df..1c4c288da 100644
--- a/tests/pending/run/resetattrs-this.scala
+++ b/tests/pending/run/resetattrs-this.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val tree = Select(This(cm.staticPackage("scala").moduleClass), TermName("Predef"))
val ttree = tb.typecheck(tree)
diff --git a/tests/pending/run/runtime-richChar.scala b/tests/pending/run/runtime-richChar.scala
index 72e25a3a8..0368368bf 100644
--- a/tests/pending/run/runtime-richChar.scala
+++ b/tests/pending/run/runtime-richChar.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testSeq(name: String, expected: Seq[Char], got: Seq[Char]): Unit = {
if (expected.toList == got.toList)
println(name + " ok")
diff --git a/tests/pending/run/runtimeEval1.scala b/tests/pending/run/runtimeEval1.scala
index 84861c6c8..0202dfd06 100644
--- a/tests/pending/run/runtimeEval1.scala
+++ b/tests/pending/run/runtimeEval1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val x = 2
println(x)
diff --git a/tests/pending/run/runtimeEval2.scala b/tests/pending/run/runtimeEval2.scala
index a566487c5..2708f9dbc 100644
--- a/tests/pending/run/runtimeEval2.scala
+++ b/tests/pending/run/runtimeEval2.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 2
val outer = reify{reify{x}}
println(outer.eval.eval)
diff --git a/tests/pending/run/search.scala b/tests/pending/run/search.scala
index ed7fed54a..611245b7a 100644
--- a/tests/pending/run/search.scala
+++ b/tests/pending/run/search.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.{LinearSeq, IndexedSeq}
import scala.collection.Searching.search
diff --git a/tests/pending/run/showdecl/Test_2.scala b/tests/pending/run/showdecl/Test_2.scala
index 6eb64baf3..fc212ab05 100644
--- a/tests/pending/run/showdecl/Test_2.scala
+++ b/tests/pending/run/showdecl/Test_2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(sym: Symbol): Unit = {
println(s"autoinitialized ${sym.name}: ${showDecl(sym)}")
sym.info
diff --git a/tests/pending/run/showraw_aliases.scala b/tests/pending/run/showraw_aliases.scala
index b78a72b2e..fa41b5783 100644
--- a/tests/pending/run/showraw_aliases.scala
+++ b/tests/pending/run/showraw_aliases.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = runtimeMirror(getClass.getClassLoader).mkToolBox()
val tree = tb.parse("""
import scala.reflect.runtime.{universe => ru}
diff --git a/tests/pending/run/showraw_mods.scala b/tests/pending/run/showraw_mods.scala
index 77d80f57f..872685c37 100644
--- a/tests/pending/run/showraw_mods.scala
+++ b/tests/pending/run/showraw_mods.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree = reify{trait C { private[this] val x = 2; var y = x; lazy val z = y }}
println(showRaw(tree.tree))
}
diff --git a/tests/pending/run/showraw_nosymbol.scala b/tests/pending/run/showraw_nosymbol.scala
index d7f3f7c25..191647583 100644
--- a/tests/pending/run/showraw_nosymbol.scala
+++ b/tests/pending/run/showraw_nosymbol.scala
@@ -1,5 +1,5 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(showRaw(NoSymbol))
}
diff --git a/tests/pending/run/showraw_tree.scala b/tests/pending/run/showraw_tree.scala
index 8f3999a35..fbd4c1dfa 100644
--- a/tests/pending/run/showraw_tree.scala
+++ b/tests/pending/run/showraw_tree.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
println(showRaw(tree1.tree))
diff --git a/tests/pending/run/showraw_tree_ids.scala b/tests/pending/run/showraw_tree_ids.scala
index 8b44a8875..739ea55b5 100644
--- a/tests/pending/run/showraw_tree_ids.scala
+++ b/tests/pending/run/showraw_tree_ids.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
def stabilize(s: String) = """#\d+""".r.replaceAllIn(s, "#<id>")
diff --git a/tests/pending/run/showraw_tree_kinds.scala b/tests/pending/run/showraw_tree_kinds.scala
index bfb0094f5..0891015ac 100644
--- a/tests/pending/run/showraw_tree_kinds.scala
+++ b/tests/pending/run/showraw_tree_kinds.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
println(showRaw(tree1.tree, printKinds = true))
diff --git a/tests/pending/run/showraw_tree_types_ids.scala b/tests/pending/run/showraw_tree_types_ids.scala
index 5d60d9049..30f51c549 100644
--- a/tests/pending/run/showraw_tree_types_ids.scala
+++ b/tests/pending/run/showraw_tree_types_ids.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = runtimeMirror(getClass.getClassLoader).mkToolBox()
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
diff --git a/tests/pending/run/showraw_tree_types_typed.scala b/tests/pending/run/showraw_tree_types_typed.scala
index 6d52a23b0..e24eac9f8 100644
--- a/tests/pending/run/showraw_tree_types_typed.scala
+++ b/tests/pending/run/showraw_tree_types_typed.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = runtimeMirror(getClass.getClassLoader).mkToolBox()
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
diff --git a/tests/pending/run/showraw_tree_types_untyped.scala b/tests/pending/run/showraw_tree_types_untyped.scala
index 5feea3e62..87dfd7242 100644
--- a/tests/pending/run/showraw_tree_types_untyped.scala
+++ b/tests/pending/run/showraw_tree_types_untyped.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
println(showRaw(tree1.tree, printTypes = true))
diff --git a/tests/pending/run/showraw_tree_ultimate.scala b/tests/pending/run/showraw_tree_ultimate.scala
index 5d39f176c..0a97622ad 100644
--- a/tests/pending/run/showraw_tree_ultimate.scala
+++ b/tests/pending/run/showraw_tree_ultimate.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = runtimeMirror(getClass.getClassLoader).mkToolBox()
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
diff --git a/tests/pending/run/slices.scala b/tests/pending/run/slices.scala
index 107b8e658..1ffedaea0 100644
--- a/tests/pending/run/slices.scala
+++ b/tests/pending/run/slices.scala
@@ -1,7 +1,7 @@
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// lists
println(List(1, 2, 3, 4).slice(1, 2))
diff --git a/tests/pending/run/sm-interpolator.scala b/tests/pending/run/sm-interpolator.scala
index b99daa2a8..e4bec7afb 100644
--- a/tests/pending/run/sm-interpolator.scala
+++ b/tests/pending/run/sm-interpolator.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.internal.util.StringContextStripMarginOps
def check(actual: Any, expected: Any) = if (actual != expected) sys.error(s"\nexpected:\n$expected\n\nactual:\n$actual")
diff --git a/tests/pending/run/sort.scala b/tests/pending/run/sort.scala
index eea3a2d64..c38b8fbde 100644
--- a/tests/pending/run/sort.scala
+++ b/tests/pending/run/sort.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println((1 to 100000).toList.sortWith(_<_).length)
println(List(1, 5, 10, 3, 2).toList.sortWith(_<_))
println(List(1, 5, 10, 3, 2).toList.sortWith(_>_))
diff --git a/tests/pending/run/stream-stack-overflow-filter-map.scala b/tests/pending/run/stream-stack-overflow-filter-map.scala
index bde7aea61..22db619a3 100644
--- a/tests/pending/run/stream-stack-overflow-filter-map.scala
+++ b/tests/pending/run/stream-stack-overflow-filter-map.scala
@@ -1,6 +1,6 @@
import collection.generic.{FilterMonadic, CanBuildFrom}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def mapSucc[Repr, That](s: FilterMonadic[Int, Repr])(implicit cbf: CanBuildFrom[Repr, Int, That]) = s map (_ + 1)
def flatMapId[T, Repr, That](s: FilterMonadic[T, Repr])(implicit cbf: CanBuildFrom[Repr, T, That]) = s flatMap (Seq(_))
diff --git a/tests/pending/run/stream_flatmap_odds.scala b/tests/pending/run/stream_flatmap_odds.scala
index 193525359..9e12e6dfa 100644
--- a/tests/pending/run/stream_flatmap_odds.scala
+++ b/tests/pending/run/stream_flatmap_odds.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
lazy val odds: Stream[Int] = Stream(1) append ( odds flatMap {x => Stream(x + 2)} )
Console println (odds take 42).force
}
diff --git a/tests/pending/run/streams.scala b/tests/pending/run/streams.scala
index 350e103ea..0576607d4 100644
--- a/tests/pending/run/streams.scala
+++ b/tests/pending/run/streams.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val s0: Stream[Int] = Stream.empty
println(s0.take(1))
println(s0.takeWhile(_ > 0))
diff --git a/tests/pending/run/stringbuilder.scala b/tests/pending/run/stringbuilder.scala
index a98f9cf37..8448aad54 100644
--- a/tests/pending/run/stringbuilder.scala
+++ b/tests/pending/run/stringbuilder.scala
@@ -1,7 +1,7 @@
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val str = "ABCDEFGHIJKLMABCDEFGHIJKLM"
val surrogateStr = "an old Turkic letter: \uD803\uDC22"
diff --git a/tests/pending/run/stringinterpolation_macro-run.scala b/tests/pending/run/stringinterpolation_macro-run.scala
index 886fe16e3..9af8d80fe 100644
--- a/tests/pending/run/stringinterpolation_macro-run.scala
+++ b/tests/pending/run/stringinterpolation_macro-run.scala
@@ -1,7 +1,7 @@
/*
* filter: inliner warnings; re-run with -Yinline-warnings for details
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// 'b' / 'B' (category: general)
// -----------------------------
diff --git a/tests/pending/run/structural.scala b/tests/pending/run/structural.scala
index f14086cc4..cb542c0fd 100644
--- a/tests/pending/run/structural.scala
+++ b/tests/pending/run/structural.scala
@@ -196,7 +196,7 @@ object test4 {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
test1
test2
test3
diff --git a/tests/pending/run/synchronized.scala b/tests/pending/run/synchronized.scala
index d5f6d8651..c387dc7c9 100644
--- a/tests/pending/run/synchronized.scala
+++ b/tests/pending/run/synchronized.scala
@@ -288,7 +288,7 @@ trait T {
class C2 extends T
object O2 extends T
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(name: String, result: Boolean): Unit = {
println("%-10s %s" format (name +":", if (result) "OK" else "FAILED"))
}
diff --git a/tests/pending/run/t0017.scala b/tests/pending/run/t0017.scala
index 245cbb7e4..1c4fb2e68 100644
--- a/tests/pending/run/t0017.scala
+++ b/tests/pending/run/t0017.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def transpose[A](arr: Array[Array[A]]) = {
for (i <- Array.range(0, arr(0).length)) yield
diff --git a/tests/pending/run/t0042.scala b/tests/pending/run/t0042.scala
index aa4a74d2f..57c8563f0 100644
--- a/tests/pending/run/t0042.scala
+++ b/tests/pending/run/t0042.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def getClause[T](clauses: List[T]): Option[T] = {
for (c <- clauses) {
return Some(c)
diff --git a/tests/pending/run/t0412.scala b/tests/pending/run/t0412.scala
index 873fbb1eb..ffd4f56bf 100644
--- a/tests/pending/run/t0412.scala
+++ b/tests/pending/run/t0412.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classOf[java.util.ArrayList[_]])
println(classOf[java.util.ArrayList[T] forSome { type T }])
}
diff --git a/tests/pending/run/t0421-new.scala b/tests/pending/run/t0421-new.scala
index f743470a3..96d39534c 100644
--- a/tests/pending/run/t0421-new.scala
+++ b/tests/pending/run/t0421-new.scala
@@ -1,7 +1,7 @@
import scala.reflect.{ClassTag, classTag}
// ticket #421
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def transpose[A: ClassTag](xss: Array[Array[A]]) = {
for (i <- Array.range(0, xss(0).length)) yield
diff --git a/tests/pending/run/t0421-old.scala b/tests/pending/run/t0421-old.scala
index dde89bc54..99ec3567b 100644
--- a/tests/pending/run/t0421-old.scala
+++ b/tests/pending/run/t0421-old.scala
@@ -1,7 +1,7 @@
// ticket #421
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def transpose[A: ClassManifest](xss: Array[Array[A]]) = {
for (i <- Array.range(0, xss(0).length)) yield
diff --git a/tests/pending/run/t0508.scala b/tests/pending/run/t0508.scala
index 2283c46c3..10fc0bfb4 100644
--- a/tests/pending/run/t0508.scala
+++ b/tests/pending/run/t0508.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Foo(s: String, n: Int)
diff --git a/tests/pending/run/t0528.scala b/tests/pending/run/t0528.scala
index 53136178a..ab0eea55d 100644
--- a/tests/pending/run/t0528.scala
+++ b/tests/pending/run/t0528.scala
@@ -9,7 +9,7 @@ class RichStr extends Sequ[Char] {
def toArray: Array[Char] = Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: RichStr = new RichStr
println((x: Sequ[Char]).toArray.deep) // calling through the bridge misses unboxing
diff --git a/tests/pending/run/t0607.scala b/tests/pending/run/t0607.scala
index b07fdcd49..8f9e29533 100644
--- a/tests/pending/run/t0607.scala
+++ b/tests/pending/run/t0607.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class A()
class B extends A() { override def toString() = "B()" }
println(A())
diff --git a/tests/pending/run/t0631.scala b/tests/pending/run/t0631.scala
index c401ed31c..2767b4bf0 100644
--- a/tests/pending/run/t0631.scala
+++ b/tests/pending/run/t0631.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Foo {
override def equals(that: Any) = {
println("Foo.equals called")
diff --git a/tests/pending/run/t0668.scala b/tests/pending/run/t0668.scala
index 98ecb554c..f97c360e5 100644
--- a/tests/pending/run/t0668.scala
+++ b/tests/pending/run/t0668.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val ints: Array[Int] = Array(1, 2, 3)
ints.toArray
}
diff --git a/tests/pending/run/t0677-new.scala b/tests/pending/run/t0677-new.scala
index e1e2cefc9..8aee295c3 100644
--- a/tests/pending/run/t0677-new.scala
+++ b/tests/pending/run/t0677-new.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class X[T: ClassTag] {
val a = Array.ofDim[T](3, 4)
}
diff --git a/tests/pending/run/t0677-old.scala b/tests/pending/run/t0677-old.scala
index 8d4c3ee06..fde0aac9f 100644
--- a/tests/pending/run/t0677-old.scala
+++ b/tests/pending/run/t0677-old.scala
@@ -1,7 +1,7 @@
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class X[T: ClassManifest] {
val a = Array.ofDim[T](3, 4)
}
diff --git a/tests/pending/run/t0807.scala b/tests/pending/run/t0807.scala
index 1e2a26664..1b5bc91c5 100644
--- a/tests/pending/run/t0807.scala
+++ b/tests/pending/run/t0807.scala
@@ -1,5 +1,5 @@
trait A
trait B extends A { val x = println("early") }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new B {}
}
diff --git a/tests/pending/run/t0883.scala b/tests/pending/run/t0883.scala
index c8ed06dbf..fb46f423e 100644
--- a/tests/pending/run/t0883.scala
+++ b/tests/pending/run/t0883.scala
@@ -2,7 +2,7 @@ object Foo { def apply(x: String) = new Foo(x) }
class Foo(name: String)
case object Bar extends Foo("Bar")
case class Baz() extends Foo("Baz")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Foo("Bar") match {
case Bar => println("What?")
case _ => println("OK")
diff --git a/tests/pending/run/t0911.scala b/tests/pending/run/t0911.scala
index c895b53b5..a0b5597d5 100644
--- a/tests/pending/run/t0911.scala
+++ b/tests/pending/run/t0911.scala
@@ -7,6 +7,6 @@ val baz = "bar"
// END copied early initializers
};
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
(new IP).bar();
}
diff --git a/tests/pending/run/t0936.scala b/tests/pending/run/t0936.scala
index e3470a248..7cb00b949 100644
--- a/tests/pending/run/t0936.scala
+++ b/tests/pending/run/t0936.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo = {
abstract class MouseEventType { def x: String }
diff --git a/tests/pending/run/t1042.scala b/tests/pending/run/t1042.scala
index 302ff3105..cbe00f91d 100644
--- a/tests/pending/run/t1042.scala
+++ b/tests/pending/run/t1042.scala
@@ -9,6 +9,6 @@ case class B() extends A {
def toString(sb: StringBuilder): StringBuilder = sys.error("")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Console.println(B)
}
diff --git a/tests/pending/run/t1044.scala b/tests/pending/run/t1044.scala
index 4d37a40c8..227f6de27 100644
--- a/tests/pending/run/t1044.scala
+++ b/tests/pending/run/t1044.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val ducks = Array[AnyRef]("Huey", "Dewey", "Louie");
ducks.iterator.asInstanceOf[Iterator[String]]
}
diff --git a/tests/pending/run/t1110.scala b/tests/pending/run/t1110.scala
index 81917789c..964df7590 100644
--- a/tests/pending/run/t1110.scala
+++ b/tests/pending/run/t1110.scala
@@ -10,6 +10,6 @@ class Stuff {
assert(zoop(10) == 2)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Stuff
}
diff --git a/tests/pending/run/t1141.scala b/tests/pending/run/t1141.scala
index 732c57943..ad22d26c0 100644
--- a/tests/pending/run/t1141.scala
+++ b/tests/pending/run/t1141.scala
@@ -2,7 +2,7 @@
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = new {
def apply(args : String*) = args foreach println
}
diff --git a/tests/pending/run/t1167.scala b/tests/pending/run/t1167.scala
index 3dd0a30c0..8b8976b5f 100644
--- a/tests/pending/run/t1167.scala
+++ b/tests/pending/run/t1167.scala
@@ -23,7 +23,7 @@ abstract class Foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = new Foo {}
val bar = new foo.Bar {}
println(foo)
diff --git a/tests/pending/run/t1192.scala b/tests/pending/run/t1192.scala
index cdff7ef72..073d34685 100644
--- a/tests/pending/run/t1192.scala
+++ b/tests/pending/run/t1192.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val v1: Array[Array[Int]] = Array(Array(1, 2), Array(3, 4))
def f[T](w: Array[Array[T]]): Unit = {
for (r <- w) println(r.deep.toString)
diff --git a/tests/pending/run/t1220.scala b/tests/pending/run/t1220.scala
index 75e0ea07e..3f70107ce 100644
--- a/tests/pending/run/t1220.scala
+++ b/tests/pending/run/t1220.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class QSRichIterable[A](self: Iterable[A]) {
def filterMap[R](f: PartialFunction[A,R]) =
diff --git a/tests/pending/run/t1247.scala b/tests/pending/run/t1247.scala
index 9a511c25d..f9f5c853b 100644
--- a/tests/pending/run/t1247.scala
+++ b/tests/pending/run/t1247.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val f = () => 5
def test(g: => Int): Unit = {
val gFunc = g _
diff --git a/tests/pending/run/t1300.scala b/tests/pending/run/t1300.scala
index aa3580e33..8ba13fae1 100644
--- a/tests/pending/run/t1300.scala
+++ b/tests/pending/run/t1300.scala
@@ -1,4 +1,4 @@
-object Test extends App
+object Test extends dotty.runtime.LegacyApp
{
val a1 = Array(0,1,2,3).toArray[Any]
// val a1 = x1.toArray[Any]
diff --git a/tests/pending/run/t1323.scala b/tests/pending/run/t1323.scala
index 94b51bd2a..68692d92a 100644
--- a/tests/pending/run/t1323.scala
+++ b/tests/pending/run/t1323.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(" 1:" + List(1,2,3,4).indexOfSlice(List(0,1))) // -1
println(" 2:" + List(1,2,3,4).indexOfSlice(List(1,2))) // 0
println(" 3:" + List(1,2,3,4).indexOfSlice(List(2,3))) // 1
diff --git a/tests/pending/run/t1368.scala b/tests/pending/run/t1368.scala
index 04e9195d3..7ec3605e8 100644
--- a/tests/pending/run/t1368.scala
+++ b/tests/pending/run/t1368.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait Happy { val status = "happy" }
trait Sad { val status = "sad" }
diff --git a/tests/pending/run/t1373.scala b/tests/pending/run/t1373.scala
index d6f9c1ee1..9a873f0ed 100644
--- a/tests/pending/run/t1373.scala
+++ b/tests/pending/run/t1373.scala
@@ -1,5 +1,5 @@
// Testing whether case class params come back in the right order.
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Foo(private val a: String, b: String, private val c: String, d: String, private val e: String)
val x = Foo("a", "b", "c", "d", "e")
assert(x.toString == """Foo(a,b,c,d,e)""")
diff --git a/tests/pending/run/t1423.scala b/tests/pending/run/t1423.scala
index 073483aee..d8b089827 100644
--- a/tests/pending/run/t1423.scala
+++ b/tests/pending/run/t1423.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val x = 1 match {
case 0xFFFFFFFF00000001L => println("Oops, overflow!");
case 2L => println(2);
diff --git a/tests/pending/run/t1466.scala b/tests/pending/run/t1466.scala
index c59a38859..cacadd53e 100644
--- a/tests/pending/run/t1466.scala
+++ b/tests/pending/run/t1466.scala
@@ -6,6 +6,6 @@ object IOvervalueMyPrivacy {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(IOvervalueMyPrivacy.go == 6)
}
diff --git a/tests/pending/run/t1503.scala b/tests/pending/run/t1503.scala
index 25e163d90..123265059 100644
--- a/tests/pending/run/t1503.scala
+++ b/tests/pending/run/t1503.scala
@@ -2,7 +2,7 @@ object Whatever {
override def equals(x: Any) = true
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// this should make it abundantly clear Any is the best return type we can guarantee
def matchWhatever(x: Any): Any = x match { case n @ Whatever => n }
// when left to its own devices, and not under -Xfuture, the return type is Whatever.type
diff --git a/tests/pending/run/t1503_future.scala b/tests/pending/run/t1503_future.scala
index 2e7d55e2e..356f640b1 100644
--- a/tests/pending/run/t1503_future.scala
+++ b/tests/pending/run/t1503_future.scala
@@ -2,7 +2,7 @@ object Whatever {
override def equals(x: Any) = true
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// this should make it abundantly clear Any is the best return type we can guarantee
def matchWhatever(x: Any): Any = x match { case n @ Whatever => n }
// when left to its own devices, and not under -Xfuture, the return type is Whatever.type
diff --git a/tests/pending/run/t1505.scala b/tests/pending/run/t1505.scala
index 4afbb99ef..8131d03df 100644
--- a/tests/pending/run/t1505.scala
+++ b/tests/pending/run/t1505.scala
@@ -8,7 +8,7 @@ object R extends Enumeration {
val A, B, C = Value
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(Q(0) == Q.withName("A"))
assert(Q.C == Q.withName("C"))
diff --git a/tests/pending/run/t1524.scala b/tests/pending/run/t1524.scala
index 8a1fb7d5c..d28d56efb 100644
--- a/tests/pending/run/t1524.scala
+++ b/tests/pending/run/t1524.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val buf = new scala.collection.mutable.ArrayBuffer[String](0)
buf += "initial"
diff --git a/tests/pending/run/t153.scala b/tests/pending/run/t153.scala
index 3fdb42386..610a9d6df 100644
--- a/tests/pending/run/t153.scala
+++ b/tests/pending/run/t153.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def powers(x: Int) = if ((x&(x-1))==0) Some(x) else None
val res = (Stream.range(1, 500000) flatMap powers).reverse
println((res take 42).force)
diff --git a/tests/pending/run/t1535.scala b/tests/pending/run/t1535.scala
index b0163a971..853a31cac 100644
--- a/tests/pending/run/t1535.scala
+++ b/tests/pending/run/t1535.scala
@@ -8,7 +8,7 @@ class ClassDecl extends BlockStmt {
lazy val y = true
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val n = new ClassDecl ()
println (n.x)
println (n.y)
diff --git a/tests/pending/run/t1591.scala b/tests/pending/run/t1591.scala
index 6dd960504..78efb695a 100644
--- a/tests/pending/run/t1591.scala
+++ b/tests/pending/run/t1591.scala
@@ -8,7 +8,7 @@ abstract class A {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = new A{}
println(a.lazyBar.foo)
}
diff --git a/tests/pending/run/t1618.scala b/tests/pending/run/t1618.scala
index 91f6de587..248af9b4f 100644
--- a/tests/pending/run/t1618.scala
+++ b/tests/pending/run/t1618.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.tools.nsc.io._
val dir: VirtualDirectory = new VirtualDirectory("foo", None)
diff --git a/tests/pending/run/t1718.scala b/tests/pending/run/t1718.scala
index d1b19c38c..e6f520254 100644
--- a/tests/pending/run/t1718.scala
+++ b/tests/pending/run/t1718.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
def matchesNull[T](mightBeNull: Array[T]): Boolean = mightBeNull match {
case null => true
case x => false
diff --git a/tests/pending/run/t1747.scala b/tests/pending/run/t1747.scala
index 4bf583c18..f2b51a253 100644
--- a/tests/pending/run/t1747.scala
+++ b/tests/pending/run/t1747.scala
@@ -3,4 +3,4 @@ object Foo extends Foo {
}
class Foo
-object Test extends App { Foo }
+object Test extends dotty.runtime.LegacyApp { Foo }
diff --git a/tests/pending/run/t1766.scala b/tests/pending/run/t1766.scala
index ff81da3f8..150cf1495 100644
--- a/tests/pending/run/t1766.scala
+++ b/tests/pending/run/t1766.scala
@@ -1,7 +1,7 @@
import scala.language.{ reflectiveCalls }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C(s: String) {
diff --git a/tests/pending/run/t1909.scala b/tests/pending/run/t1909.scala
index 8ead7bacf..202367755 100644
--- a/tests/pending/run/t1909.scala
+++ b/tests/pending/run/t1909.scala
@@ -7,6 +7,6 @@ class Ticket1909 {
def this(p: String) = this(try 0)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Ticket1909("")
}
diff --git a/tests/pending/run/t1909b.scala b/tests/pending/run/t1909b.scala
index 89b2af57d..b4bb9a1e0 100644
--- a/tests/pending/run/t1909b.scala
+++ b/tests/pending/run/t1909b.scala
@@ -4,6 +4,6 @@ class Ticket1909 (x: Int) {
bar
})
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Ticket1909()
}
diff --git a/tests/pending/run/t1909c.scala b/tests/pending/run/t1909c.scala
index 87c0eb08b..50e06b39e 100644
--- a/tests/pending/run/t1909c.scala
+++ b/tests/pending/run/t1909c.scala
@@ -4,6 +4,6 @@ class Base(a: Any)
// at Test$.<init>(t1909c.scala)
class Sub() extends Base({ def bippy = 5; bippy })
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Sub()
}
diff --git a/tests/pending/run/t1939.scala b/tests/pending/run/t1939.scala
index 7626e8bc1..620c5b76f 100644
--- a/tests/pending/run/t1939.scala
+++ b/tests/pending/run/t1939.scala
@@ -15,7 +15,7 @@ final class T2(_module: Module) extends T {
def module = _module
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
type mType = Module
diff --git a/tests/pending/run/t2030.scala b/tests/pending/run/t2030.scala
index 2333c3981..cbd62baba 100644
--- a/tests/pending/run/t2030.scala
+++ b/tests/pending/run/t2030.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val res0 = TreeSet(1, 2, 3, 4, 5, 6)
val res1 = res0.map(x => x)
println(res0.toList == res1.toList)
diff --git a/tests/pending/run/t2075.scala b/tests/pending/run/t2075.scala
index e3a68e4a8..e81fb201c 100644
--- a/tests/pending/run/t2075.scala
+++ b/tests/pending/run/t2075.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var tm = new scala.collection.immutable.TreeMap[Int,Int]
for (i <- 0 to 100)
tm = tm.insert(i, i)
diff --git a/tests/pending/run/t2111.scala b/tests/pending/run/t2111.scala
index 98177c4e2..4482b36c1 100644
--- a/tests/pending/run/t2111.scala
+++ b/tests/pending/run/t2111.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object Color extends Enumeration {
val Red, Green, Blue = Value
diff --git a/tests/pending/run/t2147.scala b/tests/pending/run/t2147.scala
index 1a1dfddc7..ff5b71fee 100644
--- a/tests/pending/run/t2147.scala
+++ b/tests/pending/run/t2147.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val s: Seq[Int] = Stream.from(1)
val res0 = s.map(a => 2).head
val res1 = Stream.from(1).flatMap(a => List(1)).head
diff --git a/tests/pending/run/t216.scala b/tests/pending/run/t216.scala
index 916a3c582..56efb4502 100644
--- a/tests/pending/run/t216.scala
+++ b/tests/pending/run/t216.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object m {
val f = { x: Unit => () }
Console.println("OK")
diff --git a/tests/pending/run/t2176.scala b/tests/pending/run/t2176.scala
index 2a46dcf2c..8e2c583f1 100644
--- a/tests/pending/run/t2176.scala
+++ b/tests/pending/run/t2176.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val res0 = Stream.cons(1, Stream.cons( { println("ouch"); 2 }, Stream.empty))
println(res0.take(1).force)
}
diff --git a/tests/pending/run/t2177.scala b/tests/pending/run/t2177.scala
index 5e344c654..4485cfb86 100644
--- a/tests/pending/run/t2177.scala
+++ b/tests/pending/run/t2177.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Stream.from(1).take(5).mkString)
}
diff --git a/tests/pending/run/t2236-new.scala b/tests/pending/run/t2236-new.scala
index c50e85633..dc441318f 100644
--- a/tests/pending/run/t2236-new.scala
+++ b/tests/pending/run/t2236-new.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.universe._
class T[A](implicit val m:TypeTag[A])
class Foo
class Bar extends T[Foo]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Bar
}
diff --git a/tests/pending/run/t2236-old.scala b/tests/pending/run/t2236-old.scala
index 0c6f82813..aa2806205 100644
--- a/tests/pending/run/t2236-old.scala
+++ b/tests/pending/run/t2236-old.scala
@@ -1,7 +1,7 @@
class T[A](implicit val m:Manifest[A])
class Foo
class Bar extends T[Foo]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Bar
}
diff --git a/tests/pending/run/t2241.scala b/tests/pending/run/t2241.scala
index 4a8a662b8..4801749f8 100644
--- a/tests/pending/run/t2241.scala
+++ b/tests/pending/run/t2241.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def f(a:Array[Int]) = a match {
case Array(1, _*) => "yes"
case _ => "no"
diff --git a/tests/pending/run/t2255.scala b/tests/pending/run/t2255.scala
index 0b34115ed..64dec8cae 100644
--- a/tests/pending/run/t2255.scala
+++ b/tests/pending/run/t2255.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Stream.continually(Stream(1, 2, 3)).flatten.take(6).toList)
}
diff --git a/tests/pending/run/t2386-new.scala b/tests/pending/run/t2386-new.scala
index 15d185975..8edefaada 100644
--- a/tests/pending/run/t2386-new.scala
+++ b/tests/pending/run/t2386-new.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = Array(Array(1, 2), Array("a","b"))
println("a(0) = Array(" + (a(0) mkString ", ") + ")")
println("a(1) = Array(" + (a(1) map (s => "\"" + s + "\"") mkString ", ") + ")")
diff --git a/tests/pending/run/t2488.scala b/tests/pending/run/t2488.scala
index 22abdf8af..c4cd0f60c 100644
--- a/tests/pending/run/t2488.scala
+++ b/tests/pending/run/t2488.scala
@@ -2,7 +2,7 @@ class C {
def f(a:Int, b:Int) = 1
def f() = 2
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C()
println(c.f(a = 1,2))
println(c.f(a = 1, b = 2))
diff --git a/tests/pending/run/t2503.scala b/tests/pending/run/t2503.scala
index 21801e2db..d0983f2ca 100755
--- a/tests/pending/run/t2503.scala
+++ b/tests/pending/run/t2503.scala
@@ -13,7 +13,7 @@ trait SB[A] extends Buffer[A] {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new ArrayBuffer[Int] with SB[Int]
}
diff --git a/tests/pending/run/t2552.scala b/tests/pending/run/t2552.scala
index 0c6b4f005..27a6606ca 100644
--- a/tests/pending/run/t2552.scala
+++ b/tests/pending/run/t2552.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testTakeWhile = {
val numbers = Iterator.range(0, 50)
val zeroTo9 = numbers.takeWhile(x => { println("p(" + x + ")"); x < 10 } )
diff --git a/tests/pending/run/t2788.scala b/tests/pending/run/t2788.scala
index b1596d582..61344029d 100644
--- a/tests/pending/run/t2788.scala
+++ b/tests/pending/run/t2788.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Array(Some(1), None, Some(2)).flatten.toList)
}
diff --git a/tests/pending/run/t2813.2.scala b/tests/pending/run/t2813.2.scala
index db9299c40..d228eed90 100644
--- a/tests/pending/run/t2813.2.scala
+++ b/tests/pending/run/t2813.2.scala
@@ -1,7 +1,7 @@
import java.util.LinkedList
import collection.JavaConversions._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def assertListEquals[A](expected: List[A], actual: Seq[A]): Unit = {
assert(expected.sameElements(actual),
"Expected list to contain " + expected.mkString("[", ", ", "]") +
diff --git a/tests/pending/run/t2818.scala b/tests/pending/run/t2818.scala
index 746cdfb04..7829b0251 100644
--- a/tests/pending/run/t2818.scala
+++ b/tests/pending/run/t2818.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println((List.range(1L, 15L) :\ 0L) (_ + _))
println((List.range(1L, 1000000L) :\ 0L) (_ + _))
println((List.fill(5)(1) :\ 1) (_ - _))
diff --git a/tests/pending/run/t2857.scala b/tests/pending/run/t2857.scala
index c523227c4..5df2d440e 100644
--- a/tests/pending/run/t2857.scala
+++ b/tests/pending/run/t2857.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import collection.mutable._
val m = new HashMap[Int, Set[String]] with MultiMap[Int, String]
m.addBinding(6, "Foo")
diff --git a/tests/pending/run/t298.scala b/tests/pending/run/t298.scala
index bfc219ec5..5728bb6c9 100644
--- a/tests/pending/run/t298.scala
+++ b/tests/pending/run/t298.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit def anyList[T]: List[T] = Nil
implicit def intList: List[Int] = 42::24::Nil
diff --git a/tests/pending/run/t3038.scala b/tests/pending/run/t3038.scala
index 7eb69f7fb..6c9888c78 100644
--- a/tests/pending/run/t3038.scala
+++ b/tests/pending/run/t3038.scala
@@ -62,7 +62,7 @@ class C extends A {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
(new C).run
}
diff --git a/tests/pending/run/t3038b.scala b/tests/pending/run/t3038b.scala
index 1527d64eb..559f754aa 100644
--- a/tests/pending/run/t3038b.scala
+++ b/tests/pending/run/t3038b.scala
@@ -15,6 +15,6 @@ class A {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new A().run
}
diff --git a/tests/pending/run/t3097.scala b/tests/pending/run/t3097.scala
index 4aaf8056c..c5bac528b 100644
--- a/tests/pending/run/t3097.scala
+++ b/tests/pending/run/t3097.scala
@@ -9,7 +9,7 @@ sealed trait IDoubleValue extends IAbstractDoubleValue[Double]
case class ListValue(val items: List[IAtomicValue[_]]) extends IListValue
class DoubleValue(val data: Double) extends IDoubleValue
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// match is exhaustive
(new DoubleValue(1): ISimpleValue) match {
case m: IListValue => println("list")
diff --git a/tests/pending/run/t3186.scala b/tests/pending/run/t3186.scala
index 09de1a5ce..e170a4d50 100644
--- a/tests/pending/run/t3186.scala
+++ b/tests/pending/run/t3186.scala
@@ -2,6 +2,6 @@ object Dist1 extends Enumeration { val Mile, Foot, Inch = Value }
object Dist2 extends Enumeration { val Kilometer, Millimeter, Parsec = Value }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Dist1.Mile == Dist2.Kilometer)
}
diff --git a/tests/pending/run/t3346a.scala b/tests/pending/run/t3346a.scala
index c3d9598ca..dce126716 100644
--- a/tests/pending/run/t3346a.scala
+++ b/tests/pending/run/t3346a.scala
@@ -1,6 +1,6 @@
import scala.language.implicitConversions
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Rep[T](x : T)
class SomeOps[T](x : Rep[T]) { def foo = 1 }
diff --git a/tests/pending/run/t3346d.scala b/tests/pending/run/t3346d.scala
index 2d82a45ab..6a4434a9d 100644
--- a/tests/pending/run/t3346d.scala
+++ b/tests/pending/run/t3346d.scala
@@ -1,6 +1,6 @@
import scala.language.implicitConversions
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait TARInt
trait Basket[A,B] {
diff --git a/tests/pending/run/t3346e.scala b/tests/pending/run/t3346e.scala
index e74f29f89..e2b510fa0 100644
--- a/tests/pending/run/t3346e.scala
+++ b/tests/pending/run/t3346e.scala
@@ -53,7 +53,7 @@ object MyEnhancements {
implicit def toFM2[A, Repr <% TraversableLike[A, Repr]](a: Repr): FilterMapFixed[A,Repr] = new FilterMapFixed(a)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import MyEnhancements._
diff --git a/tests/pending/run/t3346f.scala b/tests/pending/run/t3346f.scala
index b2dc16de5..1871b27bd 100644
--- a/tests/pending/run/t3346f.scala
+++ b/tests/pending/run/t3346f.scala
@@ -1,7 +1,7 @@
import scala.language.implicitConversions
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait Foo[A]
implicit def fooString: Foo[String] = null
implicit def value[A](implicit foo: Foo[A]): Int = 5
diff --git a/tests/pending/run/t3346g.scala b/tests/pending/run/t3346g.scala
index fd90322da..a5b7d6bf8 100644
--- a/tests/pending/run/t3346g.scala
+++ b/tests/pending/run/t3346g.scala
@@ -2,7 +2,7 @@ import scala.language.implicitConversions
case class A(b: Int, c: String)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit def s2i(s: String): Int = s.length
implicit def toA[T](t: T)(implicit f: T => Int): A = A(f(t), t.toString)
println("asdf".copy(b = 3))
diff --git a/tests/pending/run/t3346h.scala b/tests/pending/run/t3346h.scala
index 49f672d34..0dc4b9f2e 100644
--- a/tests/pending/run/t3346h.scala
+++ b/tests/pending/run/t3346h.scala
@@ -1,6 +1,6 @@
import scala.language.implicitConversions
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait Fundep[T, U] { def u(t: T): U }
class C { def y = "x" }
implicit val FundepStringC: Test.Fundep[String,Test.C] = new Fundep[String, C]{ def u(t: String) = new C }
diff --git a/tests/pending/run/t3346j.scala b/tests/pending/run/t3346j.scala
index bfacb6d0e..b1d1f3c2e 100644
--- a/tests/pending/run/t3346j.scala
+++ b/tests/pending/run/t3346j.scala
@@ -2,7 +2,7 @@ import scala.language.implicitConversions
import scala.language.reflectiveCalls
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A[T]
class B[T]
implicit def foo[T: TypeTag](a: A[T])(implicit b: B[T]): AnyRef{def baz: reflect.runtime.universe.Type} = new { def baz = typeOf[T] }
diff --git a/tests/pending/run/t3353.scala b/tests/pending/run/t3353.scala
index eeb63c1b0..472723b3c 100644
--- a/tests/pending/run/t3353.scala
+++ b/tests/pending/run/t3353.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
"foo" match {
case Matcher(result) => println(result)
diff --git a/tests/pending/run/t3361.scala b/tests/pending/run/t3361.scala
index 25e095476..e1866cd7a 100644
--- a/tests/pending/run/t3361.scala
+++ b/tests/pending/run/t3361.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.mutable.DoubleLinkedList
empty
diff --git a/tests/pending/run/t3452e/Test.scala b/tests/pending/run/t3452e/Test.scala
index fc175bf94..9525c3403 100644
--- a/tests/pending/run/t3452e/Test.scala
+++ b/tests/pending/run/t3452e/Test.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new B
}
diff --git a/tests/pending/run/t3452h.scala b/tests/pending/run/t3452h.scala
index 6237d3ea6..c06ae0a0b 100644
--- a/tests/pending/run/t3452h.scala
+++ b/tests/pending/run/t3452h.scala
@@ -3,6 +3,6 @@ trait T
abstract class Foo_I_ { class I extends T ; def f: I ; f; }
trait Bar__f { type I>:Null<:T; def f: I = {null}; f; def gobble: I = {null}}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Mix___eFoo_I_wBar__f
}
diff --git a/tests/pending/run/t3488.scala b/tests/pending/run/t3488.scala
index a8cfa9b80..7208ab96c 100644
--- a/tests/pending/run/t3488.scala
+++ b/tests/pending/run/t3488.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(p: => Unit)(x:Int = 0) = x
println(foo { val List(_*)=List(0); 1 } ())
diff --git a/tests/pending/run/t3507-new.scala b/tests/pending/run/t3507-new.scala
index bd16849e8..5e690524e 100644
--- a/tests/pending/run/t3507-new.scala
+++ b/tests/pending/run/t3507-new.scala
@@ -9,7 +9,7 @@ class A {
def m = b.c
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var a: A = new A // mutable
val c /*: object _1.b.c forSome { val _1: A } */ = a.m // widening using existential
diff --git a/tests/pending/run/t3619.scala b/tests/pending/run/t3619.scala
index 3f4c56ea5..75b0d3cf7 100644
--- a/tests/pending/run/t3619.scala
+++ b/tests/pending/run/t3619.scala
@@ -1,6 +1,6 @@
class Dep(x: Int)(implicit val nameClash: String)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit val nameClash: String = "meh"
def meth(implicit w: String) = 1
diff --git a/tests/pending/run/t3670.scala b/tests/pending/run/t3670.scala
index 4a26e34f3..b9cee847b 100644
--- a/tests/pending/run/t3670.scala
+++ b/tests/pending/run/t3670.scala
@@ -11,7 +11,7 @@ class C {
}
}
-class M extends App {
+class M extends dotty.runtime.LegacyApp {
def foo: Unit = {
lazy val a = {
lazy val b = 1
@@ -25,7 +25,7 @@ class M extends App {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new C()
new M().foo
}
diff --git a/tests/pending/run/t3687.scala b/tests/pending/run/t3687.scala
index e26433bec..cad30a244 100644
--- a/tests/pending/run/t3687.scala
+++ b/tests/pending/run/t3687.scala
@@ -1,6 +1,6 @@
object t extends Enumeration { val a, b = Value }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(t.values)
println(t.values)
}
diff --git a/tests/pending/run/t3719.scala b/tests/pending/run/t3719.scala
index 01dc20554..ce3cf5aa3 100644
--- a/tests/pending/run/t3719.scala
+++ b/tests/pending/run/t3719.scala
@@ -12,7 +12,7 @@ object Days extends Enumeration {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def dayElementsShouldBeNamed(): List[String] =
Days.values.toList.sorted.map(x => x.toString)
diff --git a/tests/pending/run/t3726.scala b/tests/pending/run/t3726.scala
index 02b262fda..fefc29f11 100644
--- a/tests/pending/run/t3726.scala
+++ b/tests/pending/run/t3726.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(f: () => Int) = {
val x = f()
5
diff --git a/tests/pending/run/t3763.scala b/tests/pending/run/t3763.scala
index 1ac3013c8..2fa2992a8 100644
--- a/tests/pending/run/t3763.scala
+++ b/tests/pending/run/t3763.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = Array(Array(1), List(1))
}
diff --git a/tests/pending/run/t3832.scala b/tests/pending/run/t3832.scala
index ac44358bc..bc84dca22 100644
--- a/tests/pending/run/t3832.scala
+++ b/tests/pending/run/t3832.scala
@@ -11,7 +11,7 @@ class t3832 {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new t3832(0)
new t3832(true)
}
diff --git a/tests/pending/run/t3835.scala b/tests/pending/run/t3835.scala
index 766b6ddc2..7863916f4 100644
--- a/tests/pending/run/t3835.scala
+++ b/tests/pending/run/t3835.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// work around optimizer bug SI-5672 -- generates wrong bytecode for switches in arguments
// virtpatmat happily emits a switch for a one-case switch
// this is not the focus of this test, hence the temporary workaround
diff --git a/tests/pending/run/t3950.scala b/tests/pending/run/t3950.scala
index 58466e13f..4634b3bf0 100644
--- a/tests/pending/run/t3950.scala
+++ b/tests/pending/run/t3950.scala
@@ -10,7 +10,7 @@ object NegativeId extends Enumeration {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(NegativeId.fromInt(-1))
println(NegativeId.fromInt(0))
println(NegativeId.fromInt(1))
diff --git a/tests/pending/run/t3994.scala b/tests/pending/run/t3994.scala
index 0ee1d9d96..e9fc39f81 100644
--- a/tests/pending/run/t3994.scala
+++ b/tests/pending/run/t3994.scala
@@ -14,7 +14,7 @@ class Crash { // if you change this to a `trait` it keeps failing, though if it
implicit object ElementOrdering extends ElementOrdering
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
(new T {}).Default
(new Crash).ElementOrdering
}
diff --git a/tests/pending/run/t4024.scala b/tests/pending/run/t4024.scala
index f48410915..480934107 100644
--- a/tests/pending/run/t4024.scala
+++ b/tests/pending/run/t4024.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = "abc"
diff --git a/tests/pending/run/t4027.scala b/tests/pending/run/t4027.scala
index 585c5c8b3..6a858afd9 100644
--- a/tests/pending/run/t4027.scala
+++ b/tests/pending/run/t4027.scala
@@ -6,7 +6,7 @@ import collection._
/** Sorted maps should have `filterKeys` and `mapValues` which return sorted maps.
* Mapping, filtering, etc. on these views should return sorted maps again.
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val sortedmap = SortedMap(1 -> false, 2 -> true, 3 -> false, 4 -> true)
println(sortedmap.filterKeys(_ % 2 == 0): SortedMap[Int, Boolean])
diff --git a/tests/pending/run/t4047.scala b/tests/pending/run/t4047.scala
index 08989bd27..a9019d5d7 100644
--- a/tests/pending/run/t4047.scala
+++ b/tests/pending/run/t4047.scala
@@ -18,7 +18,7 @@ class D extends Bar[Unit]{
def foo = println("Unit: called D.foo")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a: Foo[Unit] = new A
a.foo
a.foo
diff --git a/tests/pending/run/t405.scala b/tests/pending/run/t405.scala
index e736fc1e5..a78203e3d 100644
--- a/tests/pending/run/t405.scala
+++ b/tests/pending/run/t405.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = M;
object M;
assert(x eq M)
diff --git a/tests/pending/run/t4110-new.scala b/tests/pending/run/t4110-new.scala
index 47d210321..49a05dc92 100644
--- a/tests/pending/run/t4110-new.scala
+++ b/tests/pending/run/t4110-new.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def inferredType[T : TypeTag](v : T) = println(typeOf[T])
trait A
diff --git a/tests/pending/run/t4110-old.scala b/tests/pending/run/t4110-old.scala
index 6022285e9..0b16c857b 100644
--- a/tests/pending/run/t4110-old.scala
+++ b/tests/pending/run/t4110-old.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def inferredType[T : Manifest](v : T) = println(manifest[T])
trait A
diff --git a/tests/pending/run/t4124.scala b/tests/pending/run/t4124.scala
index 9f35b57ce..79bcf55f0 100644
--- a/tests/pending/run/t4124.scala
+++ b/tests/pending/run/t4124.scala
@@ -1,6 +1,6 @@
import xml.Node
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val body: Node = <elem>hi</elem>
println ((body: AnyRef, "foo") match {
case (node: Node, "bar") => "bye"
diff --git a/tests/pending/run/t4190.scala b/tests/pending/run/t4190.scala
index aa88b8708..0c91d62de 100644
--- a/tests/pending/run/t4190.scala
+++ b/tests/pending/run/t4190.scala
@@ -1,6 +1,6 @@
import collection.mutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: ArrayBuffer[String] = ArrayBuffer("a", "b", "c")
x.view map (_ + "0") foreach println
}
diff --git a/tests/pending/run/t4332b.scala b/tests/pending/run/t4332b.scala
index 8ee069ca2..a773da960 100644
--- a/tests/pending/run/t4332b.scala
+++ b/tests/pending/run/t4332b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(expected: Any, actual: Any, msg: String = "") = {
if (expected != actual)
sys.error(s"($actual != $expected) $msg")
diff --git a/tests/pending/run/t4396.scala b/tests/pending/run/t4396.scala
index 2877a5f1d..694360101 100644
--- a/tests/pending/run/t4396.scala
+++ b/tests/pending/run/t4396.scala
@@ -19,7 +19,7 @@ object Main {
def main(argv: Array[String]): Unit = {
class Bip {
class Foo { override def toString() = "foo" }
- object Main extends App {
+ object Main extends dotty.runtime.LegacyApp {
val cbn = new Foo()
}
Main.main(Array())
@@ -29,7 +29,7 @@ object Main {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new C(22)
Main.main(Array())
}
diff --git a/tests/pending/run/t4537/d.scala b/tests/pending/run/t4537/d.scala
index dd1d2045e..be0266710 100644
--- a/tests/pending/run/t4537/d.scala
+++ b/tests/pending/run/t4537/d.scala
@@ -1,6 +1,6 @@
import a._
import b._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Settings.Y)
}
diff --git a/tests/pending/run/t4742.scala b/tests/pending/run/t4742.scala
index 3b42c0c12..47656049b 100644
--- a/tests/pending/run/t4742.scala
+++ b/tests/pending/run/t4742.scala
@@ -1,7 +1,7 @@
trait T { val x: Int = 0 }
object O extends T { override final val x = 1 }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// was throwing an UnitializedFieldError as constant 1 is folded into the accessor
assert((O: T).x == 1)
}
diff --git a/tests/pending/run/t4750.scala b/tests/pending/run/t4750.scala
index 96d2c4fec..7b0432362 100644
--- a/tests/pending/run/t4750.scala
+++ b/tests/pending/run/t4750.scala
@@ -1,6 +1,6 @@
import scala.util.matching.Regex
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val input = "CURRENCY 5.80"
println("CURRENCY".r.replaceAllIn(input, Regex quoteReplacement "US$"))
}
diff --git a/tests/pending/run/t4766.scala b/tests/pending/run/t4766.scala
index d67431f50..b7d1b6cfa 100644
--- a/tests/pending/run/t4766.scala
+++ b/tests/pending/run/t4766.scala
@@ -2,7 +2,7 @@
import scala.language.postfixOps
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = new {
def > = 1
}
diff --git a/tests/pending/run/t4777.scala b/tests/pending/run/t4777.scala
index 6c7b856e3..ef163c476 100644
--- a/tests/pending/run/t4777.scala
+++ b/tests/pending/run/t4777.scala
@@ -2,7 +2,7 @@ class A(val a: Int = 13)
class DefaultsTest(x: Int = 25) extends A(28)
object DefaultsTest extends DefaultsTest(12)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(new DefaultsTest().a)
println(DefaultsTest.a)
}
diff --git a/tests/pending/run/t4813.scala b/tests/pending/run/t4813.scala
index 6d48ca875..1146bb16e 100644
--- a/tests/pending/run/t4813.scala
+++ b/tests/pending/run/t4813.scala
@@ -2,7 +2,7 @@ import collection.mutable._
import reflect._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def runTest[T, U](col: T)(clone: T => U)(mod: T => Unit)(implicit ct: ClassTag[T]): Unit = {
val cloned = clone(col)
assert(cloned == col, s"cloned should be equal to original. $cloned != $col")
diff --git a/tests/pending/run/t4935.scala b/tests/pending/run/t4935.scala
index 5940355b9..88940be6b 100644
--- a/tests/pending/run/t4935.scala
+++ b/tests/pending/run/t4935.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
for (i <- 0 to 1) {
val a = Foo
}
diff --git a/tests/pending/run/t498.scala b/tests/pending/run/t498.scala
index 5c10e6630..d50d8fd3f 100644
--- a/tests/pending/run/t498.scala
+++ b/tests/pending/run/t498.scala
@@ -1,7 +1,7 @@
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// the function passed to flatMap produces lots of empty streams, but this should not overflow the stack
val res = Stream.from(1).flatMap(i => if (i < 3000) Stream.empty else List(1))
println(res take 42 force)
diff --git a/tests/pending/run/t5009.scala b/tests/pending/run/t5009.scala
index db12c0d68..9e4700c07 100644
--- a/tests/pending/run/t5009.scala
+++ b/tests/pending/run/t5009.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class C[T, U <: String, O >: Object](x: Int, y: T)(z: U, b: Boolean)(s: O, val l: Int)
diff --git a/tests/pending/run/t5040.scala b/tests/pending/run/t5040.scala
index 6cd2c2223..6813c1b27 100644
--- a/tests/pending/run/t5040.scala
+++ b/tests/pending/run/t5040.scala
@@ -3,7 +3,7 @@ abstract class Prova2 extends Dynamic {
private def privateMethod() = println("private method")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val prova= new Prova2 {
def applyDynamic(m: String)() = println("applyDynamic")
}
diff --git a/tests/pending/run/t5045.scala b/tests/pending/run/t5045.scala
index b0c3a4ddc..3778339aa 100644
--- a/tests/pending/run/t5045.scala
+++ b/tests/pending/run/t5045.scala
@@ -1,7 +1,7 @@
import scala.language.postfixOps
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.util.matching.{ Regex, UnanchoredRegex }
diff --git a/tests/pending/run/t5053.scala b/tests/pending/run/t5053.scala
index 50057ce66..797faaeaf 100644
--- a/tests/pending/run/t5053.scala
+++ b/tests/pending/run/t5053.scala
@@ -1,7 +1,7 @@
import scala.language.{ existentials }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val (left, right) = Seq((1, "a"), (1, "a"), (1, "a"), (3, "c")).view.unzip
println(left.isInstanceOf[scala.collection.SeqViewLike[_,_,_]])
diff --git a/tests/pending/run/t5080.scala b/tests/pending/run/t5080.scala
index 4099ba6f1..c20e378bb 100644
--- a/tests/pending/run/t5080.scala
+++ b/tests/pending/run/t5080.scala
@@ -2,7 +2,7 @@
import scala.language.implicitConversions
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
abstract class Value {
}
diff --git a/tests/pending/run/t5125.scala b/tests/pending/run/t5125.scala
index 21de47f87..b9f732085 100644
--- a/tests/pending/run/t5125.scala
+++ b/tests/pending/run/t5125.scala
@@ -12,7 +12,7 @@ object O2 {
def g(): String => Int = s => s.hashCode
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(c: Class[_]): Unit = {
val methodName = "f"
val methods = c.getDeclaredMethods.filter(_.getName == methodName)
diff --git a/tests/pending/run/t5125b.scala b/tests/pending/run/t5125b.scala
index 5a77e311a..cf01db324 100644
--- a/tests/pending/run/t5125b.scala
+++ b/tests/pending/run/t5125b.scala
@@ -23,7 +23,7 @@ class C4 {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(c: Class[_]): Unit = {
val methodName = "f"
val methods = c.getDeclaredMethods.filter(_.getName == methodName)
diff --git a/tests/pending/run/t5134.scala b/tests/pending/run/t5134.scala
index 384442fda..fe946040f 100644
--- a/tests/pending/run/t5134.scala
+++ b/tests/pending/run/t5134.scala
@@ -1,6 +1,6 @@
import language._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def b = new AnyRef {
def a= ()
}
diff --git a/tests/pending/run/t5171.scala b/tests/pending/run/t5171.scala
index eb8029df8..349508268 100644
--- a/tests/pending/run/t5171.scala
+++ b/tests/pending/run/t5171.scala
@@ -2,6 +2,6 @@ abstract sealed class ArgNumber
case object IsList extends ArgNumber
case object ArgNumber
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(IsList)
}
diff --git a/tests/pending/run/t5201.scala b/tests/pending/run/t5201.scala
index 48aa7ba54..70ab6e9ae 100644
--- a/tests/pending/run/t5201.scala
+++ b/tests/pending/run/t5201.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// First make sure specific types are preserved
val tmp: Vector[Int] = Vector(Vector(1,2), Vector(3,4)).view.flatten.force
diff --git a/tests/pending/run/t5224.scala b/tests/pending/run/t5224.scala
index 5e92d4e04..d0cd9a455 100644
--- a/tests/pending/run/t5224.scala
+++ b/tests/pending/run/t5224.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
class Foo(bar: String) extends annotation.ClassfileAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree = reify{@Foo(bar = "qwe") class C}.tree
println(tree.toString)
}
diff --git a/tests/pending/run/t5225_1.scala b/tests/pending/run/t5225_1.scala
index 68134ea14..a553e83ce 100644
--- a/tests/pending/run/t5225_1.scala
+++ b/tests/pending/run/t5225_1.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree = reify{@transient @volatile var x = 2}.tree
println(tree.toString)
}
diff --git a/tests/pending/run/t5225_2.scala b/tests/pending/run/t5225_2.scala
index 30f08d640..54e7fec1f 100644
--- a/tests/pending/run/t5225_2.scala
+++ b/tests/pending/run/t5225_2.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree = reify{def foo(@annotation.elidable(0) x: Int) = ""}.tree
println(tree.toString)
}
diff --git a/tests/pending/run/t5229_1.scala b/tests/pending/run/t5229_1.scala
index 218b0e867..62341fdbb 100644
--- a/tests/pending/run/t5229_1.scala
+++ b/tests/pending/run/t5229_1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
object C
}.eval
diff --git a/tests/pending/run/t5229_2.scala b/tests/pending/run/t5229_2.scala
index 39ee15666..a9cd08947 100644
--- a/tests/pending/run/t5229_2.scala
+++ b/tests/pending/run/t5229_2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
object C {
val x = 2
diff --git a/tests/pending/run/t5230.scala b/tests/pending/run/t5230.scala
index 3b5b7c24b..5c934c345 100644
--- a/tests/pending/run/t5230.scala
+++ b/tests/pending/run/t5230.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
class C {
val x = 2
diff --git a/tests/pending/run/t5256a.scala b/tests/pending/run/t5256a.scala
index 5f8a10575..a1ed76b11 100644
--- a/tests/pending/run/t5256a.scala
+++ b/tests/pending/run/t5256a.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class A { def foo = ??? }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = cm.classSymbol(classOf[A])
println(c)
println(c.fullName)
diff --git a/tests/pending/run/t5256b.scala b/tests/pending/run/t5256b.scala
index 769d133b3..065890a2b 100644
--- a/tests/pending/run/t5256b.scala
+++ b/tests/pending/run/t5256b.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A { def foo = ??? }
val c = cm.classSymbol(classOf[A])
println(c)
diff --git a/tests/pending/run/t5256c.scala b/tests/pending/run/t5256c.scala
index 6ef0cf958..21bac2e5d 100644
--- a/tests/pending/run/t5256c.scala
+++ b/tests/pending/run/t5256c.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
class A { def foo = ??? }
val c = cm.classSymbol(classOf[A])
diff --git a/tests/pending/run/t5256e.scala b/tests/pending/run/t5256e.scala
index cf5be9a9a..a7a83d068 100644
--- a/tests/pending/run/t5256e.scala
+++ b/tests/pending/run/t5256e.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C { class A { def foo = ??? } }
val c = cm.classSymbol(classOf[C#A])
println(c)
diff --git a/tests/pending/run/t5256f.scala b/tests/pending/run/t5256f.scala
index 1de259241..3a9dd5998 100644
--- a/tests/pending/run/t5256f.scala
+++ b/tests/pending/run/t5256f.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A1 { def foo = ??? }
val c1 = cm.classSymbol(classOf[A1])
diff --git a/tests/pending/run/t5256g.scala b/tests/pending/run/t5256g.scala
index 2d4c1b506..fce57ab6e 100644
--- a/tests/pending/run/t5256g.scala
+++ b/tests/pending/run/t5256g.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class A
trait B
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val mutant = new A with B
val c = cm.classSymbol(mutant.getClass)
println(c)
diff --git a/tests/pending/run/t5256h.scala b/tests/pending/run/t5256h.scala
index 435124a46..5376caeff 100644
--- a/tests/pending/run/t5256h.scala
+++ b/tests/pending/run/t5256h.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val mutant = new { val x = 2 }
val c = cm.classSymbol(mutant.getClass)
println(c)
diff --git a/tests/pending/run/t5258a.scala b/tests/pending/run/t5258a.scala
index 4eaa0a58d..5a22a251c 100644
--- a/tests/pending/run/t5258a.scala
+++ b/tests/pending/run/t5258a.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
println(classOf[Int])
}.eval
diff --git a/tests/pending/run/t5266_1.scala b/tests/pending/run/t5266_1.scala
index df94bda3d..5ed943ee6 100644
--- a/tests/pending/run/t5266_1.scala
+++ b/tests/pending/run/t5266_1.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
def x = 2
println(x)
diff --git a/tests/pending/run/t5266_2.scala b/tests/pending/run/t5266_2.scala
index a876aa384..c8c3ab824 100644
--- a/tests/pending/run/t5266_2.scala
+++ b/tests/pending/run/t5266_2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
def x = 2
def y = x
diff --git a/tests/pending/run/t5269.scala b/tests/pending/run/t5269.scala
index bede89aa0..dbaa1d1d8 100644
--- a/tests/pending/run/t5269.scala
+++ b/tests/pending/run/t5269.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
trait Z {
val z = 2
diff --git a/tests/pending/run/t5270.scala b/tests/pending/run/t5270.scala
index 6dc0cd898..03ba765fd 100644
--- a/tests/pending/run/t5270.scala
+++ b/tests/pending/run/t5270.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class Y {
def y = 100
diff --git a/tests/pending/run/t5271_1.scala b/tests/pending/run/t5271_1.scala
index 5c7b2607b..cdae3df58 100644
--- a/tests/pending/run/t5271_1.scala
+++ b/tests/pending/run/t5271_1.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
case class C(foo: Int, bar: Int)
};
diff --git a/tests/pending/run/t5271_2.scala b/tests/pending/run/t5271_2.scala
index 12073b3b9..654fa7b30 100644
--- a/tests/pending/run/t5271_2.scala
+++ b/tests/pending/run/t5271_2.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
case class C(foo: Int, bar: Int)
val c = C(2, 2)
diff --git a/tests/pending/run/t5271_3.scala b/tests/pending/run/t5271_3.scala
index d05f4e5f4..2fa4cea77 100644
--- a/tests/pending/run/t5271_3.scala
+++ b/tests/pending/run/t5271_3.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
object C { def qwe = 4 }
case class C(foo: Int, bar: Int)
diff --git a/tests/pending/run/t5271_4.scala b/tests/pending/run/t5271_4.scala
index a1519b713..03cca7c48 100644
--- a/tests/pending/run/t5271_4.scala
+++ b/tests/pending/run/t5271_4.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
case object C
}.eval
diff --git a/tests/pending/run/t5272_1_newpatmat.scala b/tests/pending/run/t5272_1_newpatmat.scala
index 5a3cf2abb..30d0c875d 100644
--- a/tests/pending/run/t5272_1_newpatmat.scala
+++ b/tests/pending/run/t5272_1_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
2 match {
case 2 => println("okay")
diff --git a/tests/pending/run/t5272_1_oldpatmat.scala b/tests/pending/run/t5272_1_oldpatmat.scala
index 5a3cf2abb..30d0c875d 100644
--- a/tests/pending/run/t5272_1_oldpatmat.scala
+++ b/tests/pending/run/t5272_1_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
2 match {
case 2 => println("okay")
diff --git a/tests/pending/run/t5272_2_newpatmat.scala b/tests/pending/run/t5272_2_newpatmat.scala
index cb9037ca8..436f0fd4f 100644
--- a/tests/pending/run/t5272_2_newpatmat.scala
+++ b/tests/pending/run/t5272_2_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
2 match {
case x => println("okay" + x)
diff --git a/tests/pending/run/t5272_2_oldpatmat.scala b/tests/pending/run/t5272_2_oldpatmat.scala
index cb9037ca8..436f0fd4f 100644
--- a/tests/pending/run/t5272_2_oldpatmat.scala
+++ b/tests/pending/run/t5272_2_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
2 match {
case x => println("okay" + x)
diff --git a/tests/pending/run/t5273_1_newpatmat.scala b/tests/pending/run/t5273_1_newpatmat.scala
index 8eec4de27..1ed2ce79a 100644
--- a/tests/pending/run/t5273_1_newpatmat.scala
+++ b/tests/pending/run/t5273_1_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
List(1, 2, 3) match {
case foo :: bar :: _ => println(foo * bar)
diff --git a/tests/pending/run/t5273_1_oldpatmat.scala b/tests/pending/run/t5273_1_oldpatmat.scala
index 8eec4de27..1ed2ce79a 100644
--- a/tests/pending/run/t5273_1_oldpatmat.scala
+++ b/tests/pending/run/t5273_1_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
List(1, 2, 3) match {
case foo :: bar :: _ => println(foo * bar)
diff --git a/tests/pending/run/t5273_2a_newpatmat.scala b/tests/pending/run/t5273_2a_newpatmat.scala
index 03bf3da81..cb4c15146 100644
--- a/tests/pending/run/t5273_2a_newpatmat.scala
+++ b/tests/pending/run/t5273_2a_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val foo :: bar :: _ = List(1, 2, 3)
println(foo * bar)
diff --git a/tests/pending/run/t5273_2a_oldpatmat.scala b/tests/pending/run/t5273_2a_oldpatmat.scala
index 03bf3da81..cb4c15146 100644
--- a/tests/pending/run/t5273_2a_oldpatmat.scala
+++ b/tests/pending/run/t5273_2a_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val foo :: bar :: _ = List(1, 2, 3)
println(foo * bar)
diff --git a/tests/pending/run/t5273_2b_newpatmat.scala b/tests/pending/run/t5273_2b_newpatmat.scala
index 2a5ec7752..ca4a31566 100644
--- a/tests/pending/run/t5273_2b_newpatmat.scala
+++ b/tests/pending/run/t5273_2b_newpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val RegexParser = """(.*) \d+([A-Z]+) \| (.*) \|.*""".r
val RegexParser(name, shortname, value) = "American Dollar 1USD | 2,8567 | sometext"
diff --git a/tests/pending/run/t5273_2b_oldpatmat.scala b/tests/pending/run/t5273_2b_oldpatmat.scala
index 2a5ec7752..ca4a31566 100644
--- a/tests/pending/run/t5273_2b_oldpatmat.scala
+++ b/tests/pending/run/t5273_2b_oldpatmat.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
val RegexParser = """(.*) \d+([A-Z]+) \| (.*) \|.*""".r
val RegexParser(name, shortname, value) = "American Dollar 1USD | 2,8567 | sometext"
diff --git a/tests/pending/run/t5274_1.scala b/tests/pending/run/t5274_1.scala
index 00de442a9..bc0ba99e4 100644
--- a/tests/pending/run/t5274_1.scala
+++ b/tests/pending/run/t5274_1.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
def factorial(n: BigInt): BigInt =
if (n == 0) 1 else n * factorial(n-1)
diff --git a/tests/pending/run/t5274_2.scala b/tests/pending/run/t5274_2.scala
index 867f33c33..b484111ed 100644
--- a/tests/pending/run/t5274_2.scala
+++ b/tests/pending/run/t5274_2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
/** Nested methods can use and even update everything
* visible in their scope (including local variables or
diff --git a/tests/pending/run/t5275.scala b/tests/pending/run/t5275.scala
index a749c57c8..38b77abab 100644
--- a/tests/pending/run/t5275.scala
+++ b/tests/pending/run/t5275.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C(val foo: Int)
println(new C(2).foo)
diff --git a/tests/pending/run/t5276_1a.scala b/tests/pending/run/t5276_1a.scala
index 3173fb1dd..ad76b2e69 100644
--- a/tests/pending/run/t5276_1a.scala
+++ b/tests/pending/run/t5276_1a.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
lazy val x = 2
println(x)
diff --git a/tests/pending/run/t5276_1b.scala b/tests/pending/run/t5276_1b.scala
index d2e194567..8f11bdc6e 100644
--- a/tests/pending/run/t5276_1b.scala
+++ b/tests/pending/run/t5276_1b.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
implicit lazy val x = 2
println(implicitly[Int])
diff --git a/tests/pending/run/t5276_2a.scala b/tests/pending/run/t5276_2a.scala
index dbb263314..7086fc983 100644
--- a/tests/pending/run/t5276_2a.scala
+++ b/tests/pending/run/t5276_2a.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C {
lazy val x = 2
diff --git a/tests/pending/run/t5276_2b.scala b/tests/pending/run/t5276_2b.scala
index 9cc789ec2..cccc76a2d 100644
--- a/tests/pending/run/t5276_2b.scala
+++ b/tests/pending/run/t5276_2b.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C {
implicit lazy val x = 2
diff --git a/tests/pending/run/t5277_1.scala b/tests/pending/run/t5277_1.scala
index 65232967c..580098666 100644
--- a/tests/pending/run/t5277_1.scala
+++ b/tests/pending/run/t5277_1.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
import scala.language.{ implicitConversions, postfixOps }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
def fact(n: Int): BigInt =
if (n == 0) 1 else fact(n-1) * n
diff --git a/tests/pending/run/t5277_2.scala b/tests/pending/run/t5277_2.scala
index f045312a3..33e31da27 100644
--- a/tests/pending/run/t5277_2.scala
+++ b/tests/pending/run/t5277_2.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
def p(implicit i: Int) = print(i)
implicit val v = 2
diff --git a/tests/pending/run/t5279.scala b/tests/pending/run/t5279.scala
index 3688efaac..ed1510204 100644
--- a/tests/pending/run/t5279.scala
+++ b/tests/pending/run/t5279.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
println(new Integer(10))
}.eval
diff --git a/tests/pending/run/t5293-map.scala b/tests/pending/run/t5293-map.scala
index ad1bbcfe3..1ef7d97e5 100644
--- a/tests/pending/run/t5293-map.scala
+++ b/tests/pending/run/t5293-map.scala
@@ -5,7 +5,7 @@ import scala.collection.JavaConverters._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bench(label: String)(body: => Unit): Long = {
val start = System.nanoTime
diff --git a/tests/pending/run/t5293.scala b/tests/pending/run/t5293.scala
index c42c967b4..8a99989c5 100644
--- a/tests/pending/run/t5293.scala
+++ b/tests/pending/run/t5293.scala
@@ -5,7 +5,7 @@ import scala.collection.JavaConverters._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bench(label: String)(body: => Unit): Long = {
val start = System.nanoTime
diff --git a/tests/pending/run/t5328.scala b/tests/pending/run/t5328.scala
index 12adf45b8..74c8ace89 100644
--- a/tests/pending/run/t5328.scala
+++ b/tests/pending/run/t5328.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Vector(1).view.updated(0,2).toList mkString ",")
println(Seq(1,2,3).view.updated(2,8).toList mkString ",")
println(List(1,2,3).view.updated(1,8).toList mkString ",")
diff --git a/tests/pending/run/t5334_1.scala b/tests/pending/run/t5334_1.scala
index 537187f88..58954c2f9 100644
--- a/tests/pending/run/t5334_1.scala
+++ b/tests/pending/run/t5334_1.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
class C { override def toString = "C" }
val ret = new C
diff --git a/tests/pending/run/t5334_2.scala b/tests/pending/run/t5334_2.scala
index 0246dc31b..105819405 100644
--- a/tests/pending/run/t5334_2.scala
+++ b/tests/pending/run/t5334_2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
class C { override def toString() = "C" }
val ret = List((new C, new C))
diff --git a/tests/pending/run/t5335.scala b/tests/pending/run/t5335.scala
index 3405ce003..c85c5730e 100644
--- a/tests/pending/run/t5335.scala
+++ b/tests/pending/run/t5335.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
println(new {def x = 2}.x)
}.eval
diff --git a/tests/pending/run/t5375.scala b/tests/pending/run/t5375.scala
index 826ecd841..8c2c06fde 100644
--- a/tests/pending/run/t5375.scala
+++ b/tests/pending/run/t5375.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foos = (1 to 1000).toSeq
try
foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
diff --git a/tests/pending/run/t5387.scala b/tests/pending/run/t5387.scala
index 5d62a005a..dabf9e201 100644
--- a/tests/pending/run/t5387.scala
+++ b/tests/pending/run/t5387.scala
@@ -2,7 +2,7 @@
* This tests that the predicate of dropWhile is only evaluated as often as needed, see https://issues.scala-lang.org/browse/SI-5387
*/
import scala.collection.immutable.ListMap
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
val subject = ListMap(1->1,2->2,3->3,4->4,5->5)
val result = ListMap(3->3,4->4,5->5)
assert( result == subject.dropWhile{
diff --git a/tests/pending/run/t5394.scala b/tests/pending/run/t5394.scala
index 12bae597c..5f649ee0a 100644
--- a/tests/pending/run/t5394.scala
+++ b/tests/pending/run/t5394.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def f[T](l: List[T]): Int = l match { case x :: xs => f(xs) case Nil => 0 }
f(List.fill(10000)(0))
}
diff --git a/tests/pending/run/t5407.scala b/tests/pending/run/t5407.scala
index f86e04e6f..cc761e5c0 100644
--- a/tests/pending/run/t5407.scala
+++ b/tests/pending/run/t5407.scala
@@ -1,6 +1,6 @@
case class Foo(private val x: Int, y: Option[Int], z: Boolean)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(x: Foo) = x match {
case Foo(x, Some(y), z) => y
case Foo(x, y, z) => 0
diff --git a/tests/pending/run/t5415.scala b/tests/pending/run/t5415.scala
index 65de86245..cdc90b8ae 100644
--- a/tests/pending/run/t5415.scala
+++ b/tests/pending/run/t5415.scala
@@ -1,4 +1,4 @@
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
case class Queryable2[T]() { def filter(predicate: T => Boolean) = ??? }
trait CoffeesTable{ def sales : Int }
val q = Queryable2[CoffeesTable]()
diff --git a/tests/pending/run/t5418.scala b/tests/pending/run/t5418.scala
index f1ebe8fb3..beec4370d 100644
--- a/tests/pending/run/t5418.scala
+++ b/tests/pending/run/t5418.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
new Object().getClass
}.eval
diff --git a/tests/pending/run/t5418a.scala b/tests/pending/run/t5418a.scala
index a9c9204aa..722348685 100644
--- a/tests/pending/run/t5418a.scala
+++ b/tests/pending/run/t5418a.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.runtime.universe.reify(new Object().getClass))
}
diff --git a/tests/pending/run/t5418b.scala b/tests/pending/run/t5418b.scala
index f74730e46..650700ae2 100644
--- a/tests/pending/run/t5418b.scala
+++ b/tests/pending/run/t5418b.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val untyped = reify(new Object().getClass).tree
val typed = tb.typecheck(untyped)
diff --git a/tests/pending/run/t5419.scala b/tests/pending/run/t5419.scala
index d8ca28640..e0ee02a5c 100644
--- a/tests/pending/run/t5419.scala
+++ b/tests/pending/run/t5419.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
class Foo extends annotation.StaticAnnotation
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tree = reify{(5: @Foo).asInstanceOf[Int]}.tree
println(tree.toString)
}
diff --git a/tests/pending/run/t5423.scala b/tests/pending/run/t5423.scala
index eab029b30..98aeda129 100644
--- a/tests/pending/run/t5423.scala
+++ b/tests/pending/run/t5423.scala
@@ -5,7 +5,7 @@ import scala.reflect.runtime.{currentMirror => cm}
final class table extends annotation.StaticAnnotation
@table class A
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val s = cm.classSymbol(classOf[A])
println(s.annotations)
}
diff --git a/tests/pending/run/t5530.scala b/tests/pending/run/t5530.scala
index 5fc0df54f..7975abca1 100644
--- a/tests/pending/run/t5530.scala
+++ b/tests/pending/run/t5530.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(s"""something like this
${3+4} now works!.""")
}
diff --git a/tests/pending/run/t5532.scala b/tests/pending/run/t5532.scala
index ab51fb319..6304ec644 100644
--- a/tests/pending/run/t5532.scala
+++ b/tests/pending/run/t5532.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = s"1"
val y = s"2"
}
diff --git a/tests/pending/run/t5544/Test_2.scala b/tests/pending/run/t5544/Test_2.scala
index 285f8959e..ea9232221 100644
--- a/tests/pending/run/t5544/Test_2.scala
+++ b/tests/pending/run/t5544/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Api.foo
}
diff --git a/tests/pending/run/t5565.scala b/tests/pending/run/t5565.scala
index 91e238d07..c46068caf 100644
--- a/tests/pending/run/t5565.scala
+++ b/tests/pending/run/t5565.scala
@@ -1,7 +1,7 @@
import scala.language.reflectiveCalls
import scala.language.implicitConversions
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit def doubleWithApproxEquals(d: Double): AnyRef{def ~==(v: Double,margin: Double): Boolean; def ~==$default$2: Double @scala.annotation.unchecked.uncheckedVariance} = new {
def ~==(v: Double, margin: Double = 0.001): Boolean =
math.abs(d - v) < margin
diff --git a/tests/pending/run/t5603.scala b/tests/pending/run/t5603.scala
index 77c2775cc..79a1ba076 100644
--- a/tests/pending/run/t5603.scala
+++ b/tests/pending/run/t5603.scala
@@ -21,7 +21,7 @@ object Test extends DirectTest {
println(msg)
}
- object Test extends App {}
+ object Test extends dotty.runtime.LegacyApp {}
""".trim
override def show(): Unit = {
diff --git a/tests/pending/run/t5610a.scala b/tests/pending/run/t5610a.scala
index 0917dba2d..3787c0984 100644
--- a/tests/pending/run/t5610a.scala
+++ b/tests/pending/run/t5610a.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Result(_str: => String) {
lazy val str = _str
}
diff --git a/tests/pending/run/t5614.scala b/tests/pending/run/t5614.scala
index 7c85c33f1..c3410f28b 100644
--- a/tests/pending/run/t5614.scala
+++ b/tests/pending/run/t5614.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val str = s"a\nb"
println(str.length)
println(str)
diff --git a/tests/pending/run/t5629b.scala b/tests/pending/run/t5629b.scala
index 5d402201a..9cee18893 100644
--- a/tests/pending/run/t5629b.scala
+++ b/tests/pending/run/t5629b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait MyPF[@specialized(Int) -A] extends (A => Unit) {
def isDefinedAt(x: A): Boolean
diff --git a/tests/pending/run/t5652c/t5652c.scala b/tests/pending/run/t5652c/t5652c.scala
index c97748328..0a7e584f6 100644
--- a/tests/pending/run/t5652c/t5652c.scala
+++ b/tests/pending/run/t5652c/t5652c.scala
@@ -3,7 +3,7 @@ class A1 {
def f2 = { def g = 2 ; class A { def a = g } ; new A().a }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classOf[A1].getDeclaredMethods.map(_.toString).sorted.mkString("\n"))
println(new A1().f1)
println(new A1().f2)
diff --git a/tests/pending/run/t5680.scala b/tests/pending/run/t5680.scala
index 52449849c..7f4252839 100644
--- a/tests/pending/run/t5680.scala
+++ b/tests/pending/run/t5680.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = Array[Unit]((), ())
println(x.toString.substring(0, x.toString.indexOf(";")))
println(x(0))
diff --git a/tests/pending/run/t5688.scala b/tests/pending/run/t5688.scala
index 266d364ae..ebbba0d66 100644
--- a/tests/pending/run/t5688.scala
+++ b/tests/pending/run/t5688.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait T
trait TA
diff --git a/tests/pending/run/t5704.scala b/tests/pending/run/t5704.scala
index f2cb8f375..b9765ebb6 100644
--- a/tests/pending/run/t5704.scala
+++ b/tests/pending/run/t5704.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class MyQuerycollection{
def findUserByName( name:String ) = {
val tree = reify{ "test" == name }.tree
diff --git a/tests/pending/run/t5710-1.scala b/tests/pending/run/t5710-1.scala
index 29100ebb2..5548ca4ca 100644
--- a/tests/pending/run/t5710-1.scala
+++ b/tests/pending/run/t5710-1.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
val (x, y) = ("abc": Any) match { case x => (x, x) }
(x, y)
diff --git a/tests/pending/run/t5710-2.scala b/tests/pending/run/t5710-2.scala
index 4eb53893f..c5129ce34 100644
--- a/tests/pending/run/t5710-2.scala
+++ b/tests/pending/run/t5710-2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
val (x, y) = "abc" match { case x => (x, x) }
(x, y)
diff --git a/tests/pending/run/t5713/Test_2.scala b/tests/pending/run/t5713/Test_2.scala
index 24f9e79b1..7e4d02a80 100644
--- a/tests/pending/run/t5713/Test_2.scala
+++ b/tests/pending/run/t5713/Test_2.scala
@@ -1,5 +1,5 @@
import m._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Logger.error("err")
} \ No newline at end of file
diff --git a/tests/pending/run/t5733.scala b/tests/pending/run/t5733.scala
index df691cbb6..a9e58d77e 100644
--- a/tests/pending/run/t5733.scala
+++ b/tests/pending/run/t5733.scala
@@ -16,7 +16,7 @@ class B extends Dynamic {
def updateDynamic(method:String)(v:String): Unit = { b = v }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert( A.foo == "a" )
assert( A.bar == "a" )
A.aaa = "aaa"
diff --git a/tests/pending/run/t5753_1/Test_2.scala b/tests/pending/run/t5753_1/Test_2.scala
index 864d356fd..413eefff3 100644
--- a/tests/pending/run/t5753_1/Test_2.scala
+++ b/tests/pending/run/t5753_1/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println(foo(42))
} \ No newline at end of file
diff --git a/tests/pending/run/t5753_2/Test_2.scala b/tests/pending/run/t5753_2/Test_2.scala
index 864d356fd..413eefff3 100644
--- a/tests/pending/run/t5753_2/Test_2.scala
+++ b/tests/pending/run/t5753_2/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Macros._
println(foo(42))
} \ No newline at end of file
diff --git a/tests/pending/run/t5770.scala b/tests/pending/run/t5770.scala
index b6c923684..409efb2d1 100644
--- a/tests/pending/run/t5770.scala
+++ b/tests/pending/run/t5770.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var i = 0
val action = reify { i += 1; println(i) }.tree
diff --git a/tests/pending/run/t5816.scala b/tests/pending/run/t5816.scala
index 5cc396ff5..4c2a5bcb7 100644
--- a/tests/pending/run/t5816.scala
+++ b/tests/pending/run/t5816.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
def printSource[T](expr: Expr[T]): Unit = {
diff --git a/tests/pending/run/t5824.scala b/tests/pending/run/t5824.scala
index 2ad169e2d..c5cfc280f 100644
--- a/tests/pending/run/t5824.scala
+++ b/tests/pending/run/t5824.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
println("%s %s %s".format(List("a", "b", "c"): _*))
}.eval
diff --git a/tests/pending/run/t5830.scala b/tests/pending/run/t5830.scala
index 36da15e2b..2ae1544e5 100644
--- a/tests/pending/run/t5830.scala
+++ b/tests/pending/run/t5830.scala
@@ -1,6 +1,6 @@
import scala.annotation.switch
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def noSwitch(ch: Char, eof: Boolean) = ch match {
case 'a' if eof => println("a with oef") // then branch
}
diff --git a/tests/pending/run/t5840.scala b/tests/pending/run/t5840.scala
index bb1cd7fa4..ba2376f0f 100644
--- a/tests/pending/run/t5840.scala
+++ b/tests/pending/run/t5840.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
reify {
class C[T <: String with Singleton]
}
diff --git a/tests/pending/run/t5856.scala b/tests/pending/run/t5856.scala
index e300b8540..e4e0e3f58 100644
--- a/tests/pending/run/t5856.scala
+++ b/tests/pending/run/t5856.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
override def toString = "Test"
assert(s"$this" == "Test")
diff --git a/tests/pending/run/t5881.scala b/tests/pending/run/t5881.scala
index 14d794da9..3191e975d 100644
--- a/tests/pending/run/t5881.scala
+++ b/tests/pending/run/t5881.scala
@@ -1,7 +1,7 @@
import scala.language.existentials
import scala.reflect.ClassTag
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[ClassTag[List[T forSome { type T <: List[T] }]]])
println(implicitly[ClassTag[List[Any]]])
}
diff --git a/tests/pending/run/t5903a/Test_2.scala b/tests/pending/run/t5903a/Test_2.scala
index 3a0b68b56..55a8320b3 100644
--- a/tests/pending/run/t5903a/Test_2.scala
+++ b/tests/pending/run/t5903a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import NewQuasiquotes._
SomeTree match {
case nq"$x + $y" => println((x, y))
diff --git a/tests/pending/run/t5903b/Test_2.scala b/tests/pending/run/t5903b/Test_2.scala
index 0f6f80d32..23a92225d 100644
--- a/tests/pending/run/t5903b/Test_2.scala
+++ b/tests/pending/run/t5903b/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Interpolation._
2 match {
case t"$x" => println(x)
diff --git a/tests/pending/run/t5903c/Test_2.scala b/tests/pending/run/t5903c/Test_2.scala
index 0f6f80d32..23a92225d 100644
--- a/tests/pending/run/t5903c/Test_2.scala
+++ b/tests/pending/run/t5903c/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Interpolation._
2 match {
case t"$x" => println(x)
diff --git a/tests/pending/run/t5903d/Test_2.scala b/tests/pending/run/t5903d/Test_2.scala
index 95c717a9d..5df60f024 100644
--- a/tests/pending/run/t5903d/Test_2.scala
+++ b/tests/pending/run/t5903d/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import Interpolation._
42 match {
case t"$x" => println(x)
diff --git a/tests/pending/run/t5907.scala b/tests/pending/run/t5907.scala
index 14366a6ed..02a5b8893 100644
--- a/tests/pending/run/t5907.scala
+++ b/tests/pending/run/t5907.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
t
def t: Unit = {
diff --git a/tests/pending/run/t5912.scala b/tests/pending/run/t5912.scala
index fc879a053..6e70205ab 100644
--- a/tests/pending/run/t5912.scala
+++ b/tests/pending/run/t5912.scala
@@ -1,5 +1,5 @@
import scala.language.existentials
-object Test extends App{
+object Test extends dotty.runtime.LegacyApp{
import scala.reflect.runtime.{currentMirror=>cm}
import scala.tools.reflect._
import scala.reflect.runtime.universe._
diff --git a/tests/pending/run/t5914.scala b/tests/pending/run/t5914.scala
index 39a8dd3ca..472c4c853 100644
--- a/tests/pending/run/t5914.scala
+++ b/tests/pending/run/t5914.scala
@@ -15,7 +15,7 @@ trait Trees {
}
}
-object Test extends App with Trees {
+object Test extends dotty.runtime.LegacyApp with Trees {
val ttTag = implicitly[ClassTag[TypeTree]]
case class TypeTree(meh: String) extends Tree
object TypeTree extends TypeTreeExtractor
diff --git a/tests/pending/run/t5923a/Test_2.scala b/tests/pending/run/t5923a/Test_2.scala
index 001ff9aea..1f0413bdf 100644
--- a/tests/pending/run/t5923a/Test_2.scala
+++ b/tests/pending/run/t5923a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[C[Int]])
println(implicitly[C[String]])
println(implicitly[C[Nothing]])
diff --git a/tests/pending/run/t5923b/Test.scala b/tests/pending/run/t5923b/Test.scala
index 3facd2b28..ee4e67f2b 100644
--- a/tests/pending/run/t5923b/Test.scala
+++ b/tests/pending/run/t5923b/Test.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.generic.CanBuildFrom
val cbf = implicitly[CanBuildFrom[Nothing, Nothing, Array[Nothing]]]
println(cbf().result.getClass)
diff --git a/tests/pending/run/t5923c.scala b/tests/pending/run/t5923c.scala
index f15602ae0..5f3384638 100644
--- a/tests/pending/run/t5923c.scala
+++ b/tests/pending/run/t5923c.scala
@@ -1,4 +1,4 @@
// see neg/macro-blackbox-fundep-materialization and run/macro-whitebox-fundep-materialization
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// do nothing
}
diff --git a/tests/pending/run/t5923d/Test_2.scala b/tests/pending/run/t5923d/Test_2.scala
index 6be10227c..e9c446209 100644
--- a/tests/pending/run/t5923d/Test_2.scala
+++ b/tests/pending/run/t5923d/Test_2.scala
@@ -1,7 +1,7 @@
class RowA extends MappedRow
class RowB extends MappedRow
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicitly[RowMapper[RowA]]
implicitly[RowMapper[RowB]]
} \ No newline at end of file
diff --git a/tests/pending/run/t5937.scala b/tests/pending/run/t5937.scala
index 9ec4ff12d..8176d5438 100644
--- a/tests/pending/run/t5937.scala
+++ b/tests/pending/run/t5937.scala
@@ -5,7 +5,7 @@ import collection._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val list: List[Int] = (immutable.Vector(1, 2, 3) :+ 4)(breakOut)
diff --git a/tests/pending/run/t5940.scala b/tests/pending/run/t5940.scala
index 7b025b43a..856070821 100644
--- a/tests/pending/run/t5940.scala
+++ b/tests/pending/run/t5940.scala
@@ -22,7 +22,7 @@ object Test extends DirectTest {
}
def test_2 = """
- object Test extends App {
+ object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
}
"""
diff --git a/tests/pending/run/t5942.scala b/tests/pending/run/t5942.scala
index c90d29e1c..b7a3c5138 100644
--- a/tests/pending/run/t5942.scala
+++ b/tests/pending/run/t5942.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
tb.parse("def x = {}")
try { tb.parse("def x = {") } catch { case _: Throwable => }
diff --git a/tests/pending/run/t5943a1.scala b/tests/pending/run/t5943a1.scala
index ee62ea76b..ce13259d6 100644
--- a/tests/pending/run/t5943a1.scala
+++ b/tests/pending/run/t5943a1.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val expr = tb.parse("1 to 3 map (_+1)")
println(tb.typecheck(expr))
diff --git a/tests/pending/run/t5943a2.scala b/tests/pending/run/t5943a2.scala
index 5007a4d5e..2ad87050f 100644
--- a/tests/pending/run/t5943a2.scala
+++ b/tests/pending/run/t5943a2.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val expr = tb.parse("1 to 3 map (_+1)")
println(tb.eval(expr))
diff --git a/tests/pending/run/t5974.scala b/tests/pending/run/t5974.scala
index 5b99e9f72..e4e64c51e 100644
--- a/tests/pending/run/t5974.scala
+++ b/tests/pending/run/t5974.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.JavaConverters._
def ser(a: AnyRef) =
diff --git a/tests/pending/run/t6011b.scala b/tests/pending/run/t6011b.scala
index 9d15bd664..d99bf46fc 100644
--- a/tests/pending/run/t6011b.scala
+++ b/tests/pending/run/t6011b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var cond = true
// should not generate a switch
diff --git a/tests/pending/run/t6011c.scala b/tests/pending/run/t6011c.scala
index 96a685b9c..8050c27a4 100644
--- a/tests/pending/run/t6011c.scala
+++ b/tests/pending/run/t6011c.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// A variation of SI-6011, which eluded the fix
// in 2.10.0.
//
diff --git a/tests/pending/run/t6023.scala b/tests/pending/run/t6023.scala
index 2753b93ac..9ec8724a4 100644
--- a/tests/pending/run/t6023.scala
+++ b/tests/pending/run/t6023.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test 1: reify
val tree = reify{ trait Foo { val a: Int } }.tree
println(tree.toString)
diff --git a/tests/pending/run/t6052.scala b/tests/pending/run/t6052.scala
index fc70d3962..e740f00e1 100644
--- a/tests/pending/run/t6052.scala
+++ b/tests/pending/run/t6052.scala
@@ -5,7 +5,7 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def seqarr(i: Int) = Array[Int]() ++ (0 until i)
def pararr(i: Int) = seqarr(i).par
diff --git a/tests/pending/run/t6064.scala b/tests/pending/run/t6064.scala
index 183599970..319ad1ae2 100644
--- a/tests/pending/run/t6064.scala
+++ b/tests/pending/run/t6064.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(Option(42) contains 42)
assert(Some(42) contains 42)
assert(Option(BigInt(42)) contains 42)
diff --git a/tests/pending/run/t6070.scala b/tests/pending/run/t6070.scala
index 7acd2573d..828386d13 100644
--- a/tests/pending/run/t6070.scala
+++ b/tests/pending/run/t6070.scala
@@ -20,7 +20,7 @@ class IntBomb extends Bomb {
case class Mean(var bomb: Bomb)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(x: Mean) = x match {
case Mean(b) =>
// BUG: b is assumed to be a stable identifier, but it can actually be mutated
diff --git a/tests/pending/run/t6077_patmat_cse_irrefutable.scala b/tests/pending/run/t6077_patmat_cse_irrefutable.scala
index 18db6c13e..ef8c3dc59 100644
--- a/tests/pending/run/t6077_patmat_cse_irrefutable.scala
+++ b/tests/pending/run/t6077_patmat_cse_irrefutable.scala
@@ -5,7 +5,7 @@ object LiteralNode {
def unapply(n: LiteralNode) = Some(n.value)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
((new LiteralNode(false)): Any) match {
case LiteralNode(true) => println("uh-oh")
case LiteralNode(false) => println("ok")
diff --git a/tests/pending/run/t6086-vanilla.scala b/tests/pending/run/t6086-vanilla.scala
index 84faa57f6..0fd5eedf6 100644
--- a/tests/pending/run/t6086-vanilla.scala
+++ b/tests/pending/run/t6086-vanilla.scala
@@ -1,6 +1,6 @@
case class X(s: String)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
println(typeOf[X])
}
diff --git a/tests/pending/run/t6111.scala b/tests/pending/run/t6111.scala
index a32f6a0d0..6f0164833 100644
--- a/tests/pending/run/t6111.scala
+++ b/tests/pending/run/t6111.scala
@@ -17,7 +17,7 @@ object FooHasType {
// resurrected from neg/t997
object Foo997 { def unapply(x : String): Option[(String, String)] = Some((x, x)) }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = 8
println(x match {
case Foo(p) => p // p should be a pair of Int
diff --git a/tests/pending/run/t6113.scala b/tests/pending/run/t6113.scala
index b77a56029..5322a4a35 100644
--- a/tests/pending/run/t6113.scala
+++ b/tests/pending/run/t6113.scala
@@ -2,7 +2,7 @@ import scala.language.higherKinds
trait Foo[C[_]]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
println(typeOf[Foo[({type l[X] = (Int, X)})#l]])
}
diff --git a/tests/pending/run/t6114.scala b/tests/pending/run/t6114.scala
index cb880ece0..8c19e4c2b 100644
--- a/tests/pending/run/t6114.scala
+++ b/tests/pending/run/t6114.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testList = {
val list = new java.util.ArrayList[Int]
list.add(1)
diff --git a/tests/pending/run/t6135.scala b/tests/pending/run/t6135.scala
index fdbe6048f..c258842ff 100644
--- a/tests/pending/run/t6135.scala
+++ b/tests/pending/run/t6135.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class A { class V }
abstract class B[S] {
diff --git a/tests/pending/run/t6168/main.scala b/tests/pending/run/t6168/main.scala
index c7ad37830..ed0c91fd7 100644
--- a/tests/pending/run/t6168/main.scala
+++ b/tests/pending/run/t6168/main.scala
@@ -1,6 +1,6 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
JavaTest.main(null)
var a1 : SomeClass = new SomeClass
diff --git a/tests/pending/run/t6168b/main.scala b/tests/pending/run/t6168b/main.scala
index 187e9fe85..b8871ba1a 100644
--- a/tests/pending/run/t6168b/main.scala
+++ b/tests/pending/run/t6168b/main.scala
@@ -1,6 +1,6 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
JavaTest.main(null)
var a1 : SomeClass = new SomeClass
diff --git a/tests/pending/run/t6175.scala b/tests/pending/run/t6175.scala
index 5ee1ab05e..963177c9c 100644
--- a/tests/pending/run/t6175.scala
+++ b/tests/pending/run/t6175.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import reflect.runtime._
val m = universe.typeOf[List[_]].members.head.asMethod
currentMirror.reflect (List (2, 3, 1)).reflectMethod(m)
diff --git a/tests/pending/run/t6178.scala b/tests/pending/run/t6178.scala
index 2caea1eb2..04833f617 100644
--- a/tests/pending/run/t6178.scala
+++ b/tests/pending/run/t6178.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val plus = typeOf[java.lang.String].member(TermName("$plus")).asMethod
println(cm.reflect("").reflectMethod(plus).apply("2"))
}
diff --git a/tests/pending/run/t6181.scala b/tests/pending/run/t6181.scala
index 4ec9a4a0a..13f07497c 100644
--- a/tests/pending/run/t6181.scala
+++ b/tests/pending/run/t6181.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C { def test(x: => Int) = println(x) }
val mm = cm.reflect(new C).reflectMethod(typeOf[C].member(TermName("test")).asMethod)
mm(2)
diff --git a/tests/pending/run/t6187b.scala b/tests/pending/run/t6187b.scala
index d2d3e9797..412880f38 100644
--- a/tests/pending/run/t6187b.scala
+++ b/tests/pending/run/t6187b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: PartialFunction[Int, Int] = { case 1 => 1 }
val o: Any = ""
assert(x.applyOrElse(0, (_: Int) => o) == "")
diff --git a/tests/pending/run/t6196.scala b/tests/pending/run/t6196.scala
index 19ac41193..9ded3b9c0 100644
--- a/tests/pending/run/t6196.scala
+++ b/tests/pending/run/t6196.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Collision(value: Int) extends Ordered[Collision] {
def compare(that:Collision) = value compare that.value
diff --git a/tests/pending/run/t6197.scala b/tests/pending/run/t6197.scala
index 5ab4b002d..f4f77594e 100644
--- a/tests/pending/run/t6197.scala
+++ b/tests/pending/run/t6197.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test that a HashTrieSet with one leaf element is not created!
val x = HashSet.empty + 1 + 2
diff --git a/tests/pending/run/t6198.scala b/tests/pending/run/t6198.scala
index 5aa8f1c1c..d893b9568 100644
--- a/tests/pending/run/t6198.scala
+++ b/tests/pending/run/t6198.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// test that ListSet.tail does not use a builder
// we can't test for O(1) behavior, so the best we can do is to
// check that ls.tail always returns the same instance
diff --git a/tests/pending/run/t6199-mirror.scala b/tests/pending/run/t6199-mirror.scala
index b85ca9162..1b061d4dd 100644
--- a/tests/pending/run/t6199-mirror.scala
+++ b/tests/pending/run/t6199-mirror.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C { def foo = () }
println(cm.reflect(new C).reflectMethod(typeOf[C].member(TermName("foo")).asMethod)())
}
diff --git a/tests/pending/run/t6199-toolbox.scala b/tests/pending/run/t6199-toolbox.scala
index d11f566ea..08209b346 100644
--- a/tests/pending/run/t6199-toolbox.scala
+++ b/tests/pending/run/t6199-toolbox.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
println(tb.eval(q"()"))
}
diff --git a/tests/pending/run/t6200.scala b/tests/pending/run/t6200.scala
index fd96b3ab5..af348f563 100644
--- a/tests/pending/run/t6200.scala
+++ b/tests/pending/run/t6200.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.HashMap
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Collision(value: Int) extends Ordered[Collision] {
def compare(that: Collision) = value compare that.value
diff --git a/tests/pending/run/t6220.scala b/tests/pending/run/t6220.scala
index 85995e1ef..31af61ddc 100644
--- a/tests/pending/run/t6220.scala
+++ b/tests/pending/run/t6220.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// finds an int x such that improved(x) differs in the first bit to improved(0),
// which is the worst case for the HashTrieSet
diff --git a/tests/pending/run/t6221/Test_2.scala b/tests/pending/run/t6221/Test_2.scala
index 9f6b2280a..bc295d437 100644
--- a/tests/pending/run/t6221/Test_2.scala
+++ b/tests/pending/run/t6221/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit class PimpedList[T](val list: List[T]) {
def query(predicate: ReflectiveClosure[T, Boolean]): List[T] = {
println(predicate.tree)
diff --git a/tests/pending/run/t6240-universe-code-gen.scala b/tests/pending/run/t6240-universe-code-gen.scala
index 9f7061ee1..4a213c39d 100644
--- a/tests/pending/run/t6240-universe-code-gen.scala
+++ b/tests/pending/run/t6240-universe-code-gen.scala
@@ -1,6 +1,6 @@
import scala.tools.partest.nest.FileManager._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val cm = reflect.runtime.currentMirror
val u = cm.universe
import u._
diff --git a/tests/pending/run/t6240a/StepTwo.scala b/tests/pending/run/t6240a/StepTwo.scala
index f20d7b83c..d2232c3f7 100644
--- a/tests/pending/run/t6240a/StepTwo.scala
+++ b/tests/pending/run/t6240a/StepTwo.scala
@@ -1,7 +1,7 @@
import java.io.File
import java.net.URLClassLoader
-object StepTwo extends App {
+object StepTwo extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
println(typeOf[StepTwo.type])
}
diff --git a/tests/pending/run/t6240a/Test.scala b/tests/pending/run/t6240a/Test.scala
index 844c0763e..e474b554c 100644
--- a/tests/pending/run/t6240a/Test.scala
+++ b/tests/pending/run/t6240a/Test.scala
@@ -1,7 +1,7 @@
import java.io.File
import scala.sys.process._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def prop(key: String) = {
val value = System.getProperties.getProperty(key)
assert(value != null, key)
diff --git a/tests/pending/run/t6240b/StepThree.scala b/tests/pending/run/t6240b/StepThree.scala
index 6690b8351..a5432cdf1 100644
--- a/tests/pending/run/t6240b/StepThree.scala
+++ b/tests/pending/run/t6240b/StepThree.scala
@@ -1,4 +1,4 @@
-object StepThree extends App {
+object StepThree extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
println(typeOf[StepThree.type])
}
diff --git a/tests/pending/run/t6240b/StepTwo.scala b/tests/pending/run/t6240b/StepTwo.scala
index d607c01cd..b3d977819 100644
--- a/tests/pending/run/t6240b/StepTwo.scala
+++ b/tests/pending/run/t6240b/StepTwo.scala
@@ -1,7 +1,7 @@
import java.io.File
import java.net.URLClassLoader
-object StepTwo extends App {
+object StepTwo extends dotty.runtime.LegacyApp {
val classes = new File(System.getProperty("launch.step.three"))
val cl = new URLClassLoader(Array(classes.toURI.toURL), getClass.getClassLoader)
val stepThree = cl.loadClass("StepThree")
diff --git a/tests/pending/run/t6240b/Test.scala b/tests/pending/run/t6240b/Test.scala
index 844c0763e..e474b554c 100644
--- a/tests/pending/run/t6240b/Test.scala
+++ b/tests/pending/run/t6240b/Test.scala
@@ -1,7 +1,7 @@
import java.io.File
import scala.sys.process._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def prop(key: String) = {
val value = System.getProperties.getProperty(key)
assert(value != null, key)
diff --git a/tests/pending/run/t6246.scala b/tests/pending/run/t6246.scala
index ef49a517c..179ef8690 100644
--- a/tests/pending/run/t6246.scala
+++ b/tests/pending/run/t6246.scala
@@ -1,7 +1,7 @@
import scala.reflect.{ClassTag, classTag}
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testValueClass(tag: ClassTag[_]): Unit = {
println(s"runtimeClass = ${tag.runtimeClass}, toString = ${tag.toString}")
println(tag <:< tag)
diff --git a/tests/pending/run/t6253a.scala b/tests/pending/run/t6253a.scala
index f3573347c..c2db1f5af 100644
--- a/tests/pending/run/t6253a.scala
+++ b/tests/pending/run/t6253a.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var hashCount = 0
diff --git a/tests/pending/run/t6253b.scala b/tests/pending/run/t6253b.scala
index b0ce8a736..c049aea7f 100644
--- a/tests/pending/run/t6253b.scala
+++ b/tests/pending/run/t6253b.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var hashCount = 0
diff --git a/tests/pending/run/t6253c.scala b/tests/pending/run/t6253c.scala
index dcaa8ae3e..39c3a5b17 100644
--- a/tests/pending/run/t6253c.scala
+++ b/tests/pending/run/t6253c.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var hashCount = 0
diff --git a/tests/pending/run/t6259.scala b/tests/pending/run/t6259.scala
index 2280231f4..9b4d76b51 100644
--- a/tests/pending/run/t6259.scala
+++ b/tests/pending/run/t6259.scala
@@ -44,7 +44,7 @@ object DoubleOk extends DoubleTrouble[String]({
InnerTrouble
})
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
B
C.D
val e = new E {}; e.F
diff --git a/tests/pending/run/t6260b.scala b/tests/pending/run/t6260b.scala
index dd2cf4bc4..4450ac4fe 100644
--- a/tests/pending/run/t6260b.scala
+++ b/tests/pending/run/t6260b.scala
@@ -6,7 +6,7 @@ class DD {
def baz[A](c: C[A]) = ()
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
classOf[DD].getMethod("foo", classOf[String])
classOf[DD].getMethod("bar", classOf[String])
classOf[DD].getMethod("baz", classOf[Object])
diff --git a/tests/pending/run/t6261.scala b/tests/pending/run/t6261.scala
index 92193b879..580f4009a 100644
--- a/tests/pending/run/t6261.scala
+++ b/tests/pending/run/t6261.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test1(): Unit = {
// test that a HashTrieMap with one leaf element is not created!
diff --git a/tests/pending/run/t6271.scala b/tests/pending/run/t6271.scala
index 8ebf7ad8b..e8047a9be 100644
--- a/tests/pending/run/t6271.scala
+++ b/tests/pending/run/t6271.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def filterIssue = {
val viewed : Iterable[Iterable[Int]] = List(List(0).view).view
val filtered = viewed flatMap { x => List( x filter (_ > 0) ) }
diff --git a/tests/pending/run/t6277.scala b/tests/pending/run/t6277.scala
index 48db23da2..3e8616852 100644
--- a/tests/pending/run/t6277.scala
+++ b/tests/pending/run/t6277.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
locally {
val sym = typeOf[List[_]].typeSymbol.asClass
val q = sym.isSealed
diff --git a/tests/pending/run/t6287.scala b/tests/pending/run/t6287.scala
index d0a0f7005..0607e750b 100644
--- a/tests/pending/run/t6287.scala
+++ b/tests/pending/run/t6287.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val t1 = tb.parse("1 to 3 map (_+1)")
println(tb.eval(t1))
diff --git a/tests/pending/run/t6318_derived.scala b/tests/pending/run/t6318_derived.scala
index e70473062..024f8b35e 100644
--- a/tests/pending/run/t6318_derived.scala
+++ b/tests/pending/run/t6318_derived.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test[T: ClassTag](x: T): Unit = {
println(classTag[T].runtimeClass.isAssignableFrom(x.getClass))
println(classTag[T].unapply(x))
diff --git a/tests/pending/run/t6318_primitives.scala b/tests/pending/run/t6318_primitives.scala
index 36e25de62..3b2f968d4 100644
--- a/tests/pending/run/t6318_primitives.scala
+++ b/tests/pending/run/t6318_primitives.scala
@@ -1,6 +1,6 @@
import scala.reflect.{ClassTag, classTag}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test[T: ClassTag](x: T): Unit = {
println(s"Checking if ${x.getClass} matches ${classTag[T].runtimeClass}")
println(classTag[T].unapply(x))
diff --git a/tests/pending/run/t6323b.scala b/tests/pending/run/t6323b.scala
index 88c2ae54d..9cbc1b9ed 100644
--- a/tests/pending/run/t6323b.scala
+++ b/tests/pending/run/t6323b.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => m}
import scala.reflect.runtime.{universe => u}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
locally {
try {
case class Test(a:String,b:List[Int])
diff --git a/tests/pending/run/t6327.scala b/tests/pending/run/t6327.scala
index 7683101f1..723f5ce91 100644
--- a/tests/pending/run/t6327.scala
+++ b/tests/pending/run/t6327.scala
@@ -1,6 +1,6 @@
import language._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class R[+T](s: String) { def x() = println(s) }
diff --git a/tests/pending/run/t6329_vanilla.scala b/tests/pending/run/t6329_vanilla.scala
index ec84f1f93..b1c1f7fd7 100644
--- a/tests/pending/run/t6329_vanilla.scala
+++ b/tests/pending/run/t6329_vanilla.scala
@@ -1,7 +1,7 @@
import scala.reflect.classTag
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[scala.List[_]])
println(classTag[scala.List[_]])
println(classManifest[scala.collection.immutable.List[_]])
diff --git a/tests/pending/run/t6329_vanilla_bug.scala b/tests/pending/run/t6329_vanilla_bug.scala
index a0e6092cd..7d6e732ea 100644
--- a/tests/pending/run/t6329_vanilla_bug.scala
+++ b/tests/pending/run/t6329_vanilla_bug.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[List[_]])
println(scala.reflect.classTag[List[_]])
}
diff --git a/tests/pending/run/t6331b.scala b/tests/pending/run/t6331b.scala
index 3a560ea64..8dd070f08 100644
--- a/tests/pending/run/t6331b.scala
+++ b/tests/pending/run/t6331b.scala
@@ -2,7 +2,7 @@ import scala.tools.partest.Util.trace
import scala.util.control.Exception.allCatch
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def intercept = allCatch.withApply(_.getClass)
val t: Boolean = true
trace(if (t) -0d else 0d)
diff --git a/tests/pending/run/t6333.scala b/tests/pending/run/t6333.scala
index 266d95ce6..0c8986c9e 100644
--- a/tests/pending/run/t6333.scala
+++ b/tests/pending/run/t6333.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import util.Try
val a = "apple"
diff --git a/tests/pending/run/t6353.scala b/tests/pending/run/t6353.scala
index 112241a3c..7077eaeda 100644
--- a/tests/pending/run/t6353.scala
+++ b/tests/pending/run/t6353.scala
@@ -1,6 +1,6 @@
import language.dynamics
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = new X(3)
val y = x(9)
class X(i: Int) extends Dynamic {
diff --git a/tests/pending/run/t6379/Test_2.scala b/tests/pending/run/t6379/Test_2.scala
index 8e9c99465..05bdd5575 100644
--- a/tests/pending/run/t6379/Test_2.scala
+++ b/tests/pending/run/t6379/Test_2.scala
@@ -7,7 +7,7 @@ class Reader(fname: String) {
def read() = in.read()
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(sym: MethodSymbol): Unit = {
println(s"uninitialized ${sym.name}: ${sym.exceptions}")
sym.info
diff --git a/tests/pending/run/t6380.scala b/tests/pending/run/t6380.scala
index d7344c752..c2b221f2d 100644
--- a/tests/pending/run/t6380.scala
+++ b/tests/pending/run/t6380.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
classOf[Foo].getDeclaredMethods().sortBy(_.getName).map(_.getExceptionTypes.sortBy(_.getName).toList).toList.foreach(println)
}
diff --git a/tests/pending/run/t6392a.scala b/tests/pending/run/t6392a.scala
index 0da8552fb..727b19eb8 100644
--- a/tests/pending/run/t6392a.scala
+++ b/tests/pending/run/t6392a.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val c = tb.parse("object C")
println(tb.eval(c))
diff --git a/tests/pending/run/t6392b.scala b/tests/pending/run/t6392b.scala
index 29c9a0112..4c02b09ef 100644
--- a/tests/pending/run/t6392b.scala
+++ b/tests/pending/run/t6392b.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val c = tb.parse("object C")
println(showRaw(tb.typecheck(c), printKinds = true))
diff --git a/tests/pending/run/t6394a/Test_2.scala b/tests/pending/run/t6394a/Test_2.scala
index 75e84f0e3..989ab3031 100644
--- a/tests/pending/run/t6394a/Test_2.scala
+++ b/tests/pending/run/t6394a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
override def toString = "TEST"
} \ No newline at end of file
diff --git a/tests/pending/run/t6394b/Test_2.scala b/tests/pending/run/t6394b/Test_2.scala
index 75e84f0e3..989ab3031 100644
--- a/tests/pending/run/t6394b/Test_2.scala
+++ b/tests/pending/run/t6394b/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo)
override def toString = "TEST"
} \ No newline at end of file
diff --git a/tests/pending/run/t6406-regextract.scala b/tests/pending/run/t6406-regextract.scala
index 83679a516..26d0baedc 100644
--- a/tests/pending/run/t6406-regextract.scala
+++ b/tests/pending/run/t6406-regextract.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import util.matching._
import Regex._
diff --git a/tests/pending/run/t6410.scala b/tests/pending/run/t6410.scala
index 7d25c2485..0855ffecd 100644
--- a/tests/pending/run/t6410.scala
+++ b/tests/pending/run/t6410.scala
@@ -1,7 +1,7 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = collection.parallel.mutable.ParArray.range(1,10) groupBy { _ % 2 } mapValues { _.size }
println(x)
val y = collection.parallel.immutable.ParVector.range(1,10) groupBy { _ % 2 } mapValues { _.size }
diff --git a/tests/pending/run/t6411a.scala b/tests/pending/run/t6411a.scala
index aaf3c39d8..616b6cea9 100644
--- a/tests/pending/run/t6411a.scala
+++ b/tests/pending/run/t6411a.scala
@@ -29,7 +29,7 @@ object a {
def zns_8(z: => Z[String]) = z.i
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(methName: String, arg: Any) = {
val moduleA = cm.reflect(a)
val msym = moduleA.symbol.info.decl(TermName(methName)).asMethod
diff --git a/tests/pending/run/t6411b.scala b/tests/pending/run/t6411b.scala
index f303eb6ec..3543f24a9 100644
--- a/tests/pending/run/t6411b.scala
+++ b/tests/pending/run/t6411b.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.universe._
case class Foo(n: Int) extends AnyVal
case class Bar(foo: Foo)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val mirror = runtimeMirror(getClass.getClassLoader)
val cm = mirror.reflectClass(typeOf[Bar].typeSymbol.asClass)
val ctor = typeOf[Bar].decl(termNames.CONSTRUCTOR).asMethod
diff --git a/tests/pending/run/t6443.scala b/tests/pending/run/t6443.scala
index d3eb9bb0d..9cc8c29ff 100644
--- a/tests/pending/run/t6443.scala
+++ b/tests/pending/run/t6443.scala
@@ -12,6 +12,6 @@ object B extends A {
def foo(d: String)(d2: d.type): D forSome { type D <: Derived; type S <: Derived } = {d2.isEmpty; null} // Bridge method required here!
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
B.bar
}
diff --git a/tests/pending/run/t6443b.scala b/tests/pending/run/t6443b.scala
index 9320b1dcf..7633bedfc 100644
--- a/tests/pending/run/t6443b.scala
+++ b/tests/pending/run/t6443b.scala
@@ -11,6 +11,6 @@ object B extends A {
def foo(d: D)(d2: d.type): Unit = () // Bridge method required here!
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new B.D().bar
}
diff --git a/tests/pending/run/t6467.scala b/tests/pending/run/t6467.scala
index 0ee8699d6..e02fb1669 100644
--- a/tests/pending/run/t6467.scala
+++ b/tests/pending/run/t6467.scala
@@ -6,7 +6,7 @@ import collection._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def compare(s1: String, s2: String): Unit = {
assert(s1 == s2, s1 + "\nvs.\n" + s2)
diff --git a/tests/pending/run/t6500.scala b/tests/pending/run/t6500.scala
index 03a68a3a2..8df00592b 100644
--- a/tests/pending/run/t6500.scala
+++ b/tests/pending/run/t6500.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Box(val value: Int) extends AnyVal
trait Foo {
diff --git a/tests/pending/run/t6541.scala b/tests/pending/run/t6541.scala
index f12714369..f03a75217 100644
--- a/tests/pending/run/t6541.scala
+++ b/tests/pending/run/t6541.scala
@@ -6,7 +6,7 @@ case class D(a: A, b: B[_]*)
case class E(c: Class[_])
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def f1(c: C) = c match {
case C(a, b) => ()
}
diff --git a/tests/pending/run/t6548/Test_2.scala b/tests/pending/run/t6548/Test_2.scala
index cb5abd9c3..b392ff726 100644
--- a/tests/pending/run/t6548/Test_2.scala
+++ b/tests/pending/run/t6548/Test_2.scala
@@ -6,7 +6,7 @@ class Bean {
def value = 1
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(cm.staticClass("Bean").isCaseClass)
println(typeOf[Bean].decl(TermName("value")).annotations)
}
diff --git a/tests/pending/run/t6554.scala b/tests/pending/run/t6554.scala
index 5d29d1666..e89a3760e 100644
--- a/tests/pending/run/t6554.scala
+++ b/tests/pending/run/t6554.scala
@@ -4,7 +4,7 @@ trait Foo[A] {
class Bar extends Foo[Int]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val sigs = classOf[Bar].getDeclaredMethods.map(m => s"${m.toString} / ${m.toGenericString}").sorted
println(sigs.mkString("\n"))
}
diff --git a/tests/pending/run/t657.scala b/tests/pending/run/t657.scala
index ea2b008b3..00cae5d33 100644
--- a/tests/pending/run/t657.scala
+++ b/tests/pending/run/t657.scala
@@ -46,7 +46,7 @@ class Test1 extends OffsetList with Matcher {
type Matchable = MatchableImpl;
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val test = new Test1;
val m = new test.MatchableImpl;
m.chop;
diff --git a/tests/pending/run/t6574b.scala b/tests/pending/run/t6574b.scala
index df329a31c..56f952074 100644
--- a/tests/pending/run/t6574b.scala
+++ b/tests/pending/run/t6574b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
implicit class AnyOps(val i: Int) extends AnyVal {
private def parentsOf(x: Int): List[Int] = if (x == 0) Nil else x :: parentsOf(x - 1)
def parents: List[Int] = parentsOf(i)
diff --git a/tests/pending/run/t6591_1.scala b/tests/pending/run/t6591_1.scala
index 6dd9a1d9f..8c152f68a 100644
--- a/tests/pending/run/t6591_1.scala
+++ b/tests/pending/run/t6591_1.scala
@@ -8,7 +8,7 @@ object A extends O {
val impl = new I {}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
val v: A.I = A.impl
v
diff --git a/tests/pending/run/t6591_2.scala b/tests/pending/run/t6591_2.scala
index 6214308da..9e6c917e8 100644
--- a/tests/pending/run/t6591_2.scala
+++ b/tests/pending/run/t6591_2.scala
@@ -8,7 +8,7 @@ class A extends O {
val impl = new I {}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val code = reify {
val v: A#I = (new A).impl
v
diff --git a/tests/pending/run/t6591_3.scala b/tests/pending/run/t6591_3.scala
index b73a7baf4..5069b800e 100644
--- a/tests/pending/run/t6591_3.scala
+++ b/tests/pending/run/t6591_3.scala
@@ -12,6 +12,6 @@ object A extends O {
println(showRaw(code.tree))
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val v: A.I = A.code.eval
}
diff --git a/tests/pending/run/t6591_5.scala b/tests/pending/run/t6591_5.scala
index 18d6f90a9..dfb4cd5ad 100644
--- a/tests/pending/run/t6591_5.scala
+++ b/tests/pending/run/t6591_5.scala
@@ -14,7 +14,7 @@ object A extends O {
println(showRaw(code))
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try {
val v: A.x.I = A.code.eval
} catch {
diff --git a/tests/pending/run/t6591_6.scala b/tests/pending/run/t6591_6.scala
index 2eee87928..afb2da229 100644
--- a/tests/pending/run/t6591_6.scala
+++ b/tests/pending/run/t6591_6.scala
@@ -15,7 +15,7 @@ class A extends O {
println(showRaw(code))
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try {
val v = (new A).code.eval
} catch {
diff --git a/tests/pending/run/t6591_7.scala b/tests/pending/run/t6591_7.scala
index ee1fcbae6..cec0d2cda 100644
--- a/tests/pending/run/t6591_7.scala
+++ b/tests/pending/run/t6591_7.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
import internal._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
locally {
val x = 2
def y = 3
diff --git a/tests/pending/run/t6608.scala b/tests/pending/run/t6608.scala
index 2ba979649..3671e2892 100644
--- a/tests/pending/run/t6608.scala
+++ b/tests/pending/run/t6608.scala
@@ -5,7 +5,7 @@ class C {
@inline def foo = yyy
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import universe._
val access = typeOf[C].decls
.toList
diff --git a/tests/pending/run/t6611.scala b/tests/pending/run/t6611.scala
index c295368ae..b8c1da878 100644
--- a/tests/pending/run/t6611.scala
+++ b/tests/pending/run/t6611.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
locally {
val a = Array("1")
val a2 = Array(a: _*)
diff --git a/tests/pending/run/t6614.scala b/tests/pending/run/t6614.scala
index 3ad9f36fc..b3044c9f0 100644
--- a/tests/pending/run/t6614.scala
+++ b/tests/pending/run/t6614.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.mutable.ArrayStack
println((for (i <- 0 to 10) yield {
diff --git a/tests/pending/run/t6622.scala b/tests/pending/run/t6622.scala
index cd52a5d06..ded10e8e2 100644
--- a/tests/pending/run/t6622.scala
+++ b/tests/pending/run/t6622.scala
@@ -36,7 +36,7 @@ object O4 {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(desc: String, clazz: Class[_]): Unit = {
println(s" $desc isMemberClass = ${clazz.isMemberClass}, ${clazz.getEnclosingMethod}")
println(reflect.runtime.currentMirror.classSymbol(clazz))
diff --git a/tests/pending/run/t6632.scala b/tests/pending/run/t6632.scala
index f338b73fa..baf4e7309 100644
--- a/tests/pending/run/t6632.scala
+++ b/tests/pending/run/t6632.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import collection.mutable.ListBuffer
def newLB = ListBuffer('a, 'b, 'c, 'd, 'e)
diff --git a/tests/pending/run/t6633.scala b/tests/pending/run/t6633.scala
index 196f8bfc6..852fc5714 100644
--- a/tests/pending/run/t6633.scala
+++ b/tests/pending/run/t6633.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import collection.mutable.ListBuffer
def newLB = ListBuffer('a, 'b, 'c, 'd, 'e)
diff --git a/tests/pending/run/t6634.scala b/tests/pending/run/t6634.scala
index 32daed09a..bc2f00224 100644
--- a/tests/pending/run/t6634.scala
+++ b/tests/pending/run/t6634.scala
@@ -1,6 +1,6 @@
import collection.mutable.ListBuffer
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def newLB = ListBuffer('a, 'b, 'c, 'd, 'e)
val lb0 = newLB
diff --git a/tests/pending/run/t6637.scala b/tests/pending/run/t6637.scala
index d3c380370..7f9c3cd61 100644
--- a/tests/pending/run/t6637.scala
+++ b/tests/pending/run/t6637.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try {
class A ; class B ; List().head.isInstanceOf[A with B]
} catch {
diff --git a/tests/pending/run/t6644.scala b/tests/pending/run/t6644.scala
index b8b36f957..5a9850290 100644
--- a/tests/pending/run/t6644.scala
+++ b/tests/pending/run/t6644.scala
@@ -2,7 +2,7 @@ class Testable(val c: String) extends AnyVal {
def matching(cases: Boolean*) = cases contains true
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(new Testable("").matching(true, false))
}
diff --git a/tests/pending/run/t6663.scala b/tests/pending/run/t6663.scala
index 6818d286d..bfe464ad6 100644
--- a/tests/pending/run/t6663.scala
+++ b/tests/pending/run/t6663.scala
@@ -5,7 +5,7 @@ class C(v: Any) extends Dynamic {
def applyDynamic[T](n: String)(): Option[T] = Option(v.asInstanceOf[T])
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// this should be converted to
// C(42).selectDynamic[Int]("foo").get
// but, before fixing SI-6663, became
diff --git a/tests/pending/run/t6669.scala b/tests/pending/run/t6669.scala
index e18f2514a..2b48823a7 100644
--- a/tests/pending/run/t6669.scala
+++ b/tests/pending/run/t6669.scala
@@ -1,6 +1,6 @@
import java.io.{ByteArrayOutputStream, PrintStream}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val baos = new ByteArrayOutputStream()
val ps = new PrintStream(baos)
diff --git a/tests/pending/run/t6673.scala b/tests/pending/run/t6673.scala
index a4ae4e652..9baaed4a6 100644
--- a/tests/pending/run/t6673.scala
+++ b/tests/pending/run/t6673.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(f: String => Array[String])(s: String) = f(s)
val test = foo(Array(_)) _
println(test("x").toList)
diff --git a/tests/pending/run/t6690.scala b/tests/pending/run/t6690.scala
index d7e041faf..d8d640311 100644
--- a/tests/pending/run/t6690.scala
+++ b/tests/pending/run/t6690.scala
@@ -2,7 +2,7 @@ import scala.collection.mutable
import scala.language.{ reflectiveCalls }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def last0(ml: mutable.MutableList[Int]) =
ml.asInstanceOf[{def last0: mutable.LinkedList[Int]}].last0
diff --git a/tests/pending/run/t6695.scala b/tests/pending/run/t6695.scala
index b527238a5..ce6181c06 100644
--- a/tests/pending/run/t6695.scala
+++ b/tests/pending/run/t6695.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try {
Array("a", "b", "c") match {
case Array("a", "x", "c") => println("x")
diff --git a/tests/pending/run/t6719.scala b/tests/pending/run/t6719.scala
index efde06435..f55e3323f 100644
--- a/tests/pending/run/t6719.scala
+++ b/tests/pending/run/t6719.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val tree = tb.parse("(); val res = 0")
println(tb.eval(tree))
diff --git a/tests/pending/run/t6725-1.scala b/tests/pending/run/t6725-1.scala
index 33a4ac1e1..862084402 100644
--- a/tests/pending/run/t6725-1.scala
+++ b/tests/pending/run/t6725-1.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = 1
val s = f"$a%s%n$a%s"
println(s)
diff --git a/tests/pending/run/t6725-2.scala b/tests/pending/run/t6725-2.scala
index 63d231ff0..3c1f0f854 100644
--- a/tests/pending/run/t6725-2.scala
+++ b/tests/pending/run/t6725-2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(f"%n")
println(f"aaaa%n")
println(f"%naaaa")
diff --git a/tests/pending/run/t6732.scala b/tests/pending/run/t6732.scala
index 23c5f203d..ff0f0494d 100644
--- a/tests/pending/run/t6732.scala
+++ b/tests/pending/run/t6732.scala
@@ -1,7 +1,7 @@
import scala.reflect.runtime.universe._
import definitions._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(sym: Symbol): Unit = {
println(s"${showRaw(sym, printKinds = true)}: ${sym.isModule}, ${sym.isModuleClass}, ${sym.isPackage}, ${sym.isPackageClass}")
}
diff --git a/tests/pending/run/t6733.scala b/tests/pending/run/t6733.scala
index 27efadca3..99164ae52 100644
--- a/tests/pending/run/t6733.scala
+++ b/tests/pending/run/t6733.scala
@@ -30,6 +30,6 @@ trait Foo {
protected[this] object Pro8
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
typeOf[Foo].decls.sorted.foreach(m => println(s"$m: isPrivateThis = ${m.isPrivateThis}, isProtectedThis = ${m.isProtectedThis}"))
}
diff --git a/tests/pending/run/t6793.scala b/tests/pending/run/t6793.scala
index 0b1f1619a..3d8492c10 100644
--- a/tests/pending/run/t6793.scala
+++ b/tests/pending/run/t6793.scala
@@ -1,7 +1,7 @@
package a { class C1(private[a] val v0: String) }
package b { class C2(v1: String) extends a.C1(v1) { def foo = v1 } }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new b.C2("x")
val c2Fields = classOf[b.C2].getDeclaredFields
diff --git a/tests/pending/run/t6793b.scala b/tests/pending/run/t6793b.scala
index cb3f2fb2f..8f7cc331c 100644
--- a/tests/pending/run/t6793b.scala
+++ b/tests/pending/run/t6793b.scala
@@ -3,7 +3,7 @@ package a {
class C2(v1: String) extends a.C1(v1) { def foo = v1 }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new a.C2("x")
val c2Fields = classOf[a.C2].getDeclaredFields
diff --git a/tests/pending/run/t6793c.scala b/tests/pending/run/t6793c.scala
index e28c7c81a..1c01ca539 100644
--- a/tests/pending/run/t6793c.scala
+++ b/tests/pending/run/t6793c.scala
@@ -3,7 +3,7 @@ package a {
class C2(v1: String) extends a.C1(v1) { def foo = v1 }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new a.C2("x").foo
val c2Fields = classOf[a.C2].getDeclaredFields
diff --git a/tests/pending/run/t6814/Test_2.scala b/tests/pending/run/t6814/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/t6814/Test_2.scala
+++ b/tests/pending/run/t6814/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/t6827.scala b/tests/pending/run/t6827.scala
index 8e17af09e..b7366c90a 100644
--- a/tests/pending/run/t6827.scala
+++ b/tests/pending/run/t6827.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val ns = (0 until 20)
val arr = new Array[Int](10)
diff --git a/tests/pending/run/t6888.scala b/tests/pending/run/t6888.scala
index 0c64cbe5b..f58116c31 100644
--- a/tests/pending/run/t6888.scala
+++ b/tests/pending/run/t6888.scala
@@ -11,7 +11,7 @@ class C {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C()
println(c.$.y)
println(c.$.abc$.xy)
diff --git a/tests/pending/run/t6900.scala b/tests/pending/run/t6900.scala
index 090c908f6..5e4d8a7f0 100644
--- a/tests/pending/run/t6900.scala
+++ b/tests/pending/run/t6900.scala
@@ -29,7 +29,7 @@ final class Bug {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(new Bug().f(null, null) == null)
assert(new Bug().g(null)(null) == null)
assert(new Bug().h(null)(null) == Nil)
diff --git a/tests/pending/run/t6988.scala b/tests/pending/run/t6988.scala
index 45dfe3346..810d2c406 100644
--- a/tests/pending/run/t6988.scala
+++ b/tests/pending/run/t6988.scala
@@ -3,7 +3,7 @@ case class User()
@SerialVersionUID(13l) case class IdentifyMessage1(userName: String, user: User, code: Int)
@SerialVersionUID(10l + 3l) case class IdentifyMessage2(userName: String, user: User, code: Int)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("#1 " + java.io.ObjectStreamClass.lookup(IdentifyMessage1("hei", User(), 8).getClass).getSerialVersionUID)
println("#2 " + java.io.ObjectStreamClass.lookup(IdentifyMessage2("hei", User(), 8).getClass).getSerialVersionUID)
}
diff --git a/tests/pending/run/t6989/Test_2.scala b/tests/pending/run/t6989/Test_2.scala
index 932a369f6..891f8f6c2 100644
--- a/tests/pending/run/t6989/Test_2.scala
+++ b/tests/pending/run/t6989/Test_2.scala
@@ -37,6 +37,6 @@ package object foo {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
foo.testAll()
} \ No newline at end of file
diff --git a/tests/pending/run/t6992/Test_2.scala b/tests/pending/run/t6992/Test_2.scala
index 2399bf81d..5d1a64eac 100644
--- a/tests/pending/run/t6992/Test_2.scala
+++ b/tests/pending/run/t6992/Test_2.scala
@@ -1,6 +1,6 @@
import scala.language.reflectiveCalls
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = Macros.foo("T")
val ttpe = scala.reflect.runtime.universe.weakTypeOf[foo.T]
println(ttpe)
diff --git a/tests/pending/run/t7008-scala-defined/Test_3.scala b/tests/pending/run/t7008-scala-defined/Test_3.scala
index ee7b9d9cd..23adb88b2 100644
--- a/tests/pending/run/t7008-scala-defined/Test_3.scala
+++ b/tests/pending/run/t7008-scala-defined/Test_3.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
println("=============")
diff --git a/tests/pending/run/t7008/Test_3.scala b/tests/pending/run/t7008/Test_3.scala
index 99db05e81..00e0eb684 100644
--- a/tests/pending/run/t7008/Test_3.scala
+++ b/tests/pending/run/t7008/Test_3.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
println("=============")
diff --git a/tests/pending/run/t7039.scala b/tests/pending/run/t7039.scala
index 7ca4ac497..869d3f369 100644
--- a/tests/pending/run/t7039.scala
+++ b/tests/pending/run/t7039.scala
@@ -2,7 +2,7 @@ object UnapplySeqTest {
def unapplySeq(any: Any): Option[(Int, Seq[Int])] = Some((5, List(1)))
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
null match {
case UnapplySeqTest(5) => println("uh-oh")
case UnapplySeqTest(5, 1) => println("Matched!") // compiles
diff --git a/tests/pending/run/t7044/Test_2.scala b/tests/pending/run/t7044/Test_2.scala
index 8dfb34908..e7a34d04c 100644
--- a/tests/pending/run/t7044/Test_2.scala
+++ b/tests/pending/run/t7044/Test_2.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(tpe: Type): Unit = {
val sym = tpe.typeSymbol
println(s"autoinitialized ${sym.name}: ${sym.pos.source.file.name} ${sym.pos.source.file.sizeOption.nonEmpty}")
diff --git a/tests/pending/run/t7045.scala b/tests/pending/run/t7045.scala
index 305adeb3e..330fa7fc6 100644
--- a/tests/pending/run/t7045.scala
+++ b/tests/pending/run/t7045.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
class C
class D { self: C => }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val d = cm.staticClass("D")
println(d.selfType)
d.info
diff --git a/tests/pending/run/t7046.scala b/tests/pending/run/t7046.scala
index 761e5d178..96a5d154e 100644
--- a/tests/pending/run/t7046.scala
+++ b/tests/pending/run/t7046.scala
@@ -5,7 +5,7 @@ sealed class C
class D extends C
class E extends C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = cm.staticClass("C")
println(c.knownDirectSubclasses)
c.info
diff --git a/tests/pending/run/t7047/Test_2.scala b/tests/pending/run/t7047/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/t7047/Test_2.scala
+++ b/tests/pending/run/t7047/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/t7120b.scala b/tests/pending/run/t7120b.scala
index 0be4eb70a..e5b546a90 100644
--- a/tests/pending/run/t7120b.scala
+++ b/tests/pending/run/t7120b.scala
@@ -17,7 +17,7 @@ class CHK extends BaseHK[BaseHK.Id, String] {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C
val d = new c.D()
val meth = d.getClass.getMethods.find(_.getName == "foo").get
diff --git a/tests/pending/run/t7157/Test_2.scala b/tests/pending/run/t7157/Test_2.scala
index cceb5ca17..be0d54d75 100644
--- a/tests/pending/run/t7157/Test_2.scala
+++ b/tests/pending/run/t7157/Test_2.scala
@@ -1,5 +1,5 @@
import Macros._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
a""
} \ No newline at end of file
diff --git a/tests/pending/run/t7171.scala b/tests/pending/run/t7171.scala
index e0a119222..e7b7a7f1b 100644
--- a/tests/pending/run/t7171.scala
+++ b/tests/pending/run/t7171.scala
@@ -10,7 +10,7 @@ trait T {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val t1 = new T {}
val t2 = new T {}
val a1 = new t1.A()
diff --git a/tests/pending/run/t7181.scala b/tests/pending/run/t7181.scala
index dc03d299a..a06f22bf4 100644
--- a/tests/pending/run/t7181.scala
+++ b/tests/pending/run/t7181.scala
@@ -15,7 +15,7 @@ case object ExceptionUncaughtException extends Action
case class UncaughtException(action: Action) extends RuntimeException
case class CaughtException(action: Action) extends RuntimeException
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(action: Action, expectException: Boolean = false): Unit = {
var gotException = false
val result = try
diff --git a/tests/pending/run/t7198.scala b/tests/pending/run/t7198.scala
index 26e1d8805..9390674cf 100644
--- a/tests/pending/run/t7198.scala
+++ b/tests/pending/run/t7198.scala
@@ -1,7 +1,7 @@
/* spew a few lines
* filter: Over the moon
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Console println "The quick brown fox jumped"
Console println "Over the moon"
Console println "And ran away with the vixen."
diff --git a/tests/pending/run/t7200.scala b/tests/pending/run/t7200.scala
index ba342df14..8f33d016f 100644
--- a/tests/pending/run/t7200.scala
+++ b/tests/pending/run/t7200.scala
@@ -1,6 +1,6 @@
import language.higherKinds
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// Slice of comonad is where this came up
trait Foo[F[_]] {
diff --git a/tests/pending/run/t7214.scala b/tests/pending/run/t7214.scala
index 15c2c24fa..d73fe6dd5 100644
--- a/tests/pending/run/t7214.scala
+++ b/tests/pending/run/t7214.scala
@@ -51,7 +51,7 @@ class C {
class T
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new Crash
}
diff --git a/tests/pending/run/t7215.scala b/tests/pending/run/t7215.scala
index c93e97f9c..7bc48de1f 100644
--- a/tests/pending/run/t7215.scala
+++ b/tests/pending/run/t7215.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List[List[Any]]().transpose.isEmpty
Array[Array[Any]]().transpose.isEmpty
Vector[Vector[Any]]().transpose.isEmpty
diff --git a/tests/pending/run/t7223.scala b/tests/pending/run/t7223.scala
index a707e957d..087667dc7 100644
--- a/tests/pending/run/t7223.scala
+++ b/tests/pending/run/t7223.scala
@@ -6,6 +6,6 @@ object Crash extends D(() => {
(x: Int) => {() => { new { println(x.toString) } }}
})
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Crash
}
diff --git a/tests/pending/run/t7231.scala b/tests/pending/run/t7231.scala
index d8f9fdf6f..63ed16097 100644
--- a/tests/pending/run/t7231.scala
+++ b/tests/pending/run/t7231.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val bar: Null = null
def foo(x: Array[Int]) = x
diff --git a/tests/pending/run/t7235.scala b/tests/pending/run/t7235.scala
index 603918971..2e6af545d 100644
--- a/tests/pending/run/t7235.scala
+++ b/tests/pending/run/t7235.scala
@@ -5,7 +5,7 @@ import scala.tools.reflect.ToolBox
class C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val Block(List(ValDef(_, _, tpt: CompoundTypeTree, _)), _) = reify{ val x: C{} = ??? }.tree
println(tpt)
println(tpt.templ.parents)
diff --git a/tests/pending/run/t7240/Test_2.scala b/tests/pending/run/t7240/Test_2.scala
index 5cc2cc7f7..27d2893d3 100644
--- a/tests/pending/run/t7240/Test_2.scala
+++ b/tests/pending/run/t7240/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val v = bakery.Bakery.failure
}
diff --git a/tests/pending/run/t7242.scala b/tests/pending/run/t7242.scala
index 1d655d815..318a3b0ed 100644
--- a/tests/pending/run/t7242.scala
+++ b/tests/pending/run/t7242.scala
@@ -48,7 +48,7 @@ class CrashTest3 {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
{
val c = new CrashTest
c.CrashTestTable
diff --git a/tests/pending/run/t7246/Test.scala b/tests/pending/run/t7246/Test.scala
index 9f23ca8f3..619583234 100755
--- a/tests/pending/run/t7246/Test.scala
+++ b/tests/pending/run/t7246/Test.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val so = new SubOuter
val si = new so.SubInner
diff --git a/tests/pending/run/t7246b/Test.scala b/tests/pending/run/t7246b/Test.scala
index f0982ea8d..9c8040393 100755
--- a/tests/pending/run/t7246b/Test.scala
+++ b/tests/pending/run/t7246b/Test.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val so = new SubOuter
val si = new so.SubInner
diff --git a/tests/pending/run/t7249.scala b/tests/pending/run/t7249.scala
index 375df5c3a..6858fce1c 100644
--- a/tests/pending/run/t7249.scala
+++ b/tests/pending/run/t7249.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def bnToLambda(s: => String): () => String = () => s
var x: () => String = () => sys.error("Nope")
val y = bnToLambda { x() }
diff --git a/tests/pending/run/t7269.scala b/tests/pending/run/t7269.scala
index d22e57dfe..d6e11f4f7 100644
--- a/tests/pending/run/t7269.scala
+++ b/tests/pending/run/t7269.scala
@@ -1,7 +1,7 @@
import scala.collection.JavaConversions._
import scala.collection.mutable
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testMap(): Unit = {
val mapJ = new java.util.HashMap[Int, String]
diff --git a/tests/pending/run/t7290.scala b/tests/pending/run/t7290.scala
index 01f7e8f68..2fd9909e5 100644
--- a/tests/pending/run/t7290.scala
+++ b/tests/pending/run/t7290.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val y = (0: Int) match {
case 1 => 1
case 0 | 0 => 0
diff --git a/tests/pending/run/t7300.scala b/tests/pending/run/t7300.scala
index ec841690d..010eacc88 100644
--- a/tests/pending/run/t7300.scala
+++ b/tests/pending/run/t7300.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// single line comment in multi line comment
/*//*/ val x = 1 */*/
val x = 2
diff --git a/tests/pending/run/t7325.scala b/tests/pending/run/t7325.scala
index 0b02d5348..253e8b238 100644
--- a/tests/pending/run/t7325.scala
+++ b/tests/pending/run/t7325.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// println(f"%")
println(f"%%")
// println(f"%%%")
diff --git a/tests/pending/run/t7326.scala b/tests/pending/run/t7326.scala
index ce3fa122a..3d6a711e5 100644
--- a/tests/pending/run/t7326.scala
+++ b/tests/pending/run/t7326.scala
@@ -1,7 +1,7 @@
import scala.collection.immutable.ListSet
import scala.collection.immutable.HashSet
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def testCorrectness(): Unit = {
// a key that has many hashCode collisions
diff --git a/tests/pending/run/t7328.scala b/tests/pending/run/t7328.scala
index 1e7b19674..401a76e51 100644
--- a/tests/pending/run/t7328.scala
+++ b/tests/pending/run/t7328.scala
@@ -4,7 +4,7 @@ import scala.reflect.runtime.{currentMirror => cm}
case class Foo(x: Int) extends AnyVal
case class Bar(foo: Foo)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val foo = typeOf[Bar].decl(TermName("foo")).asMethod
println(foo.returnType) // Foo
diff --git a/tests/pending/run/t7331a.scala b/tests/pending/run/t7331a.scala
index cd9d2aa73..057713af8 100644
--- a/tests/pending/run/t7331a.scala
+++ b/tests/pending/run/t7331a.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val tree = tb.parse("x")
println(tree.pos)
diff --git a/tests/pending/run/t7331b.scala b/tests/pending/run/t7331b.scala
index e499fc0b3..0d55e558e 100644
--- a/tests/pending/run/t7331b.scala
+++ b/tests/pending/run/t7331b.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
try tb.parse("f(x")
catch {
diff --git a/tests/pending/run/t7331c.scala b/tests/pending/run/t7331c.scala
index cd5cf88b0..ba6fbd01e 100644
--- a/tests/pending/run/t7331c.scala
+++ b/tests/pending/run/t7331c.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val tree = tb.parse("class C").asInstanceOf[ClassDef]
println(showRaw(tree))
diff --git a/tests/pending/run/t7341.scala b/tests/pending/run/t7341.scala
index cd177d7f7..812b316f9 100755
--- a/tests/pending/run/t7341.scala
+++ b/tests/pending/run/t7341.scala
@@ -10,6 +10,6 @@ object Obj {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Obj()
}
diff --git a/tests/pending/run/t7359/Test_2.scala b/tests/pending/run/t7359/Test_2.scala
index bb6f4cb2d..c8e5788d5 100644
--- a/tests/pending/run/t7359/Test_2.scala
+++ b/tests/pending/run/t7359/Test_2.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
typeOf[Cyclic].members
println("ok")
} \ No newline at end of file
diff --git a/tests/pending/run/t7375b/Test_2.scala b/tests/pending/run/t7375b/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/t7375b/Test_2.scala
+++ b/tests/pending/run/t7375b/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/t7445.scala b/tests/pending/run/t7445.scala
index e4ffeb8e1..25fc5d388 100644
--- a/tests/pending/run/t7445.scala
+++ b/tests/pending/run/t7445.scala
@@ -1,6 +1,6 @@
import scala.collection.immutable.ListMap
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = ListMap(1 -> 1, 2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5);
require(a.tail == ListMap(2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5));
}
diff --git a/tests/pending/run/t7498.scala b/tests/pending/run/t7498.scala
index 1dbf0597e..cab598405 100644
--- a/tests/pending/run/t7498.scala
+++ b/tests/pending/run/t7498.scala
@@ -5,7 +5,7 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.collection.concurrent.TrieMap
class Collision(val idx: Int) {
diff --git a/tests/pending/run/t7507.scala b/tests/pending/run/t7507.scala
index a5eab6248..51ee05187 100644
--- a/tests/pending/run/t7507.scala
+++ b/tests/pending/run/t7507.scala
@@ -29,7 +29,7 @@ object Outer {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val s1 = new Cake1 {}
assert((s1.x, s1.y) == (1, 2), (s1.x, s1.y))
}
diff --git a/tests/pending/run/t7510/Test_2.scala b/tests/pending/run/t7510/Test_2.scala
index 7d7a95e0f..edb8bfba4 100644
--- a/tests/pending/run/t7510/Test_2.scala
+++ b/tests/pending/run/t7510/Test_2.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
tb.compile(tb.parse("@foo.Ann_1 class C"))
}
diff --git a/tests/pending/run/t7533.scala b/tests/pending/run/t7533.scala
index 308ad493d..ac0c662e4 100644
--- a/tests/pending/run/t7533.scala
+++ b/tests/pending/run/t7533.scala
@@ -22,7 +22,7 @@ class D extends C {
}
object M
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println("Testing Symbol.isAbstract...")
def test[T: TypeTag] = {
val sym = typeOf[T].typeSymbol
diff --git a/tests/pending/run/t7558.scala b/tests/pending/run/t7558.scala
index bfcaaba5c..26163555f 100644
--- a/tests/pending/run/t7558.scala
+++ b/tests/pending/run/t7558.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val cm = reflect.runtime.currentMirror
val u = cm.universe
import scala.tools.reflect.ToolBox
diff --git a/tests/pending/run/t7570a.scala b/tests/pending/run/t7570a.scala
index 7a264ce8d..1e01488d9 100644
--- a/tests/pending/run/t7570a.scala
+++ b/tests/pending/run/t7570a.scala
@@ -4,7 +4,7 @@ import scala.tools.reflect.ToolBox
import definitions._
import Flag._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val csym = tb.define(q"""class C { override def toString = "C" }""")
println(tb.eval(q"new $csym"))
diff --git a/tests/pending/run/t7570b.scala b/tests/pending/run/t7570b.scala
index df41d9d27..8c1498531 100644
--- a/tests/pending/run/t7570b.scala
+++ b/tests/pending/run/t7570b.scala
@@ -5,7 +5,7 @@ import definitions._
import Flag._
import internal._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val msg = internal.reificationSupport.newFreeTerm("msg", "C")
internal.reificationSupport.setInfo(msg, typeOf[String])
diff --git a/tests/pending/run/t7570c.scala b/tests/pending/run/t7570c.scala
index f8ba0fea1..9fa3ac8b1 100644
--- a/tests/pending/run/t7570c.scala
+++ b/tests/pending/run/t7570c.scala
@@ -4,7 +4,7 @@ import scala.tools.reflect.{ToolBox, ToolBoxError}
import definitions._
import Flag._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val csym = tb.define(q"""class C { override def toString = "C" }""")
println((csym, csym.isClass, csym.isModule, csym.isModuleClass))
diff --git a/tests/pending/run/t7571.scala b/tests/pending/run/t7571.scala
index 00b969516..fd4babee3 100644
--- a/tests/pending/run/t7571.scala
+++ b/tests/pending/run/t7571.scala
@@ -4,7 +4,7 @@ class Foo(val a: Int) extends AnyVal {
def bar = (new {}).toString
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x = new Foo(1).foo.apply(2)
assert(x == 3, x)
val s = new Foo(1).bar
diff --git a/tests/pending/run/t7584.scala b/tests/pending/run/t7584.scala
index 6d7f4f7eb..f134b04a5 100644
--- a/tests/pending/run/t7584.scala
+++ b/tests/pending/run/t7584.scala
@@ -3,7 +3,7 @@
//
// We did flush out a spurious "pure expression does nothing in statement position"
// warning, hence -Xfatal-warnings in the flags file.
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def foo(f: (=> Int, => Int) => Unit) = f({println("a"); 0}, {println("b"); 1})
println("no calls")
foo((a, b) => ())
diff --git a/tests/pending/run/t7584b.scala b/tests/pending/run/t7584b.scala
index fd560f041..bf7afdc0b 100644
--- a/tests/pending/run/t7584b.scala
+++ b/tests/pending/run/t7584b.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def fold[A, B](f: (A, => B) => B) = (b: B) => f(null.asInstanceOf[A], b)
def f[A, B](x: A, y: B): B = y
def bip[A, B] = fold[A, B]((x, y) => f(x, y))
diff --git a/tests/pending/run/t7617a/Test_2.scala b/tests/pending/run/t7617a/Test_2.scala
index da6e34e09..aaf268a8c 100644
--- a/tests/pending/run/t7617a/Test_2.scala
+++ b/tests/pending/run/t7617a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Module.value)
Module.value = "world"
println(Module.value)
diff --git a/tests/pending/run/t7617b/Test_2.scala b/tests/pending/run/t7617b/Test_2.scala
index e1d9acdc3..0ce77a1c7 100644
--- a/tests/pending/run/t7617b/Test_2.scala
+++ b/tests/pending/run/t7617b/Test_2.scala
@@ -5,7 +5,7 @@ class C extends Dynamic {
def updateDynamic(name: String)(value: Any): Unit = macro Macros.impl
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C
c.foo = 2
} \ No newline at end of file
diff --git a/tests/pending/run/t7657/Test_2.scala b/tests/pending/run/t7657/Test_2.scala
index 2c7422be6..68dfb5c8b 100644
--- a/tests/pending/run/t7657/Test_2.scala
+++ b/tests/pending/run/t7657/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C()
println(c.t())
println((c: T).t())
diff --git a/tests/pending/run/t7700.scala b/tests/pending/run/t7700.scala
index 76d16b808..ce4e00010 100644
--- a/tests/pending/run/t7700.scala
+++ b/tests/pending/run/t7700.scala
@@ -7,7 +7,7 @@ trait C[@specialized U] {
def bar[A](u: U) = u
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val declared = classOf[C[_]].getDeclaredMethods.sortBy(_.getName)
println(declared.mkString("\n"))
object CInt extends C[Int] { def foo(i: Int) = i }
diff --git a/tests/pending/run/t7715.scala b/tests/pending/run/t7715.scala
index 0ad391301..948014d75 100644
--- a/tests/pending/run/t7715.scala
+++ b/tests/pending/run/t7715.scala
@@ -2,7 +2,7 @@
import PartialFunction.cond
import util._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object I { def unapply(x: String): Option[Int] = Try(x.toInt).toOption }
implicit class RX(val sc: StringContext) {
diff --git a/tests/pending/run/t7777/Test_2.scala b/tests/pending/run/t7777/Test_2.scala
index 1fe8b63ba..7f84f64e4 100644
--- a/tests/pending/run/t7777/Test_2.scala
+++ b/tests/pending/run/t7777/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
DynMacro.foo(1, 2) // prints "foo(1, 2)"
DynMacro.foo(3).bar(4, 5) // prints "bar(4, 5)", then "foo(3)"
DynMacro(6).bar(7) // prints "bar(7)", then "apply(6)"
diff --git a/tests/pending/run/t7779.scala b/tests/pending/run/t7779.scala
index db32cb751..bc92403a9 100644
--- a/tests/pending/run/t7779.scala
+++ b/tests/pending/run/t7779.scala
@@ -45,7 +45,7 @@ package pack {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import reflect.runtime.universe._
def test[T: TypeTag] = {
val tt = typeTag[T]
diff --git a/tests/pending/run/t7817.scala b/tests/pending/run/t7817.scala
index 905b8aeb0..547ec9d84 100644
--- a/tests/pending/run/t7817.scala
+++ b/tests/pending/run/t7817.scala
@@ -20,7 +20,7 @@ package test {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
object fooable { def foo = "foo" }
def check(result: Any) = assert(result == "foo", result.toString)
diff --git a/tests/pending/run/t7843-jsr223-service.scala b/tests/pending/run/t7843-jsr223-service.scala
index 31112212e..2874edb4c 100644
--- a/tests/pending/run/t7843-jsr223-service.scala
+++ b/tests/pending/run/t7843-jsr223-service.scala
@@ -1,6 +1,6 @@
import scala.tools.nsc.interpreter.IMain
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val engine = new IMain.Factory getScriptEngine()
engine.asInstanceOf[IMain].settings.usejavacp.value = true
engine put ("n", 10)
diff --git a/tests/pending/run/t7868.scala b/tests/pending/run/t7868.scala
index 1f938adf3..799447f1e 100644
--- a/tests/pending/run/t7868.scala
+++ b/tests/pending/run/t7868.scala
@@ -8,6 +8,6 @@ object A {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
A.run
}
diff --git a/tests/pending/run/t7868b.scala b/tests/pending/run/t7868b.scala
index 759eeaf86..33d33f10a 100644
--- a/tests/pending/run/t7868b.scala
+++ b/tests/pending/run/t7868b.scala
@@ -2,7 +2,7 @@ object A {
def unapply(n: Int): Option[Int] = Some(1)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import reflect.runtime.universe._
println(reify {
val A(x) = (0: Short)
diff --git a/tests/pending/run/t7871/Test_2.scala b/tests/pending/run/t7871/Test_2.scala
index 3a0b68b56..55a8320b3 100644
--- a/tests/pending/run/t7871/Test_2.scala
+++ b/tests/pending/run/t7871/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import NewQuasiquotes._
SomeTree match {
case nq"$x + $y" => println((x, y))
diff --git a/tests/pending/run/t7880.scala b/tests/pending/run/t7880.scala
index 9fbc337f8..106047bc8 100644
--- a/tests/pending/run/t7880.scala
+++ b/tests/pending/run/t7880.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// This should terminate in one way or another, but it shouldn't loop forever.
try {
val buffer = collection.mutable.ArrayBuffer.fill(Int.MaxValue / 2 + 1)(0)
diff --git a/tests/pending/run/t7899.scala b/tests/pending/run/t7899.scala
index 5879d4b9f..2720cb89c 100644
--- a/tests/pending/run/t7899.scala
+++ b/tests/pending/run/t7899.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def id[A](a: => A): A = null.asInstanceOf[A]
def foo(f: (=> Int) => Int) = () => f(???)
foo(id)() // should be allowed and not throw ???
diff --git a/tests/pending/run/t7932.scala b/tests/pending/run/t7932.scala
index 8743abff8..2aaa493fa 100644
--- a/tests/pending/run/t7932.scala
+++ b/tests/pending/run/t7932.scala
@@ -5,7 +5,7 @@ trait M[F] {
def category1: Category[Tuple2] = null
}
abstract class C extends M[Float]
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val ms = classOf[C].getMethods.filter(_.getName.startsWith("category"))
println(ms.map(_.toGenericString).sorted.mkString("\n"))
}
diff --git a/tests/pending/run/t7933.scala b/tests/pending/run/t7933.scala
index b06dffcd8..c82f9002f 100644
--- a/tests/pending/run/t7933.scala
+++ b/tests/pending/run/t7933.scala
@@ -1,6 +1,6 @@
import scala.tools.nsc.interpreter.IMain
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val engine = new IMain.Factory getScriptEngine()
engine.asInstanceOf[IMain].settings.usejavacp.value = true
val res2 = engine.asInstanceOf[javax.script.Compilable]
diff --git a/tests/pending/run/t7985.scala b/tests/pending/run/t7985.scala
index 5fe270f9c..3d8a9d51c 100644
--- a/tests/pending/run/t7985.scala
+++ b/tests/pending/run/t7985.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Array(1) match { case _: Array[scala.Int] => }
}
diff --git a/tests/pending/run/t7985b.scala b/tests/pending/run/t7985b.scala
index aaf649eb2..ea7a255db 100644
--- a/tests/pending/run/t7985b.scala
+++ b/tests/pending/run/t7985b.scala
@@ -1,5 +1,5 @@
class a { type X = Int }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Array(1) match { case _: Array[a#X] => }
}
diff --git a/tests/pending/run/t8002.scala b/tests/pending/run/t8002.scala
index f24a213de..c27e83a46 100644
--- a/tests/pending/run/t8002.scala
+++ b/tests/pending/run/t8002.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a: Any = {
class A private () { private def x = 0; A.y };
object A {
diff --git a/tests/pending/run/t8010.scala b/tests/pending/run/t8010.scala
index 8636bbd12..39d1d9284 100644
--- a/tests/pending/run/t8010.scala
+++ b/tests/pending/run/t8010.scala
@@ -12,7 +12,7 @@ trait Derived extends Base {
override def bt(n: Int) = 1 + super.bt(n)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val d = new Derived {}
// not the focus of thie bug, but let's just check the runtime behaviour while we're here.
assert(d.t == 2)
diff --git a/tests/pending/run/t8015-ffc.scala b/tests/pending/run/t8015-ffc.scala
index fe6781be4..f458cc2ac 100644
--- a/tests/pending/run/t8015-ffc.scala
+++ b/tests/pending/run/t8015-ffc.scala
@@ -1,5 +1,5 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val ms = """This is a long multiline string
with \u000d\u000a CRLF embedded."""
assert(ms.lines.size == 3, s"lines.size ${ms.lines.size}")
diff --git a/tests/pending/run/t8047.scala b/tests/pending/run/t8047.scala
index f5660541e..9139ce01c 100644
--- a/tests/pending/run/t8047.scala
+++ b/tests/pending/run/t8047.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import scala.reflect.runtime.universe._
//
// x's owner is outer Test scope. Previosly the quasiquote expansion
diff --git a/tests/pending/run/t8048a/Test_2.scala b/tests/pending/run/t8048a/Test_2.scala
index 4e1c8b16b..623a22a3a 100644
--- a/tests/pending/run/t8048a/Test_2.scala
+++ b/tests/pending/run/t8048a/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: Option[Int] = Macros.foo
println(x)
} \ No newline at end of file
diff --git a/tests/pending/run/t8048b/Test_2.scala b/tests/pending/run/t8048b/Test_2.scala
index fb410dab7..8474a34ec 100644
--- a/tests/pending/run/t8048b/Test_2.scala
+++ b/tests/pending/run/t8048b/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo1.x)
println(Macros.foo2.x)
println(Macros.foo3.x)
diff --git a/tests/pending/run/t8087.scala b/tests/pending/run/t8087.scala
index 604721175..7306039c6 100644
--- a/tests/pending/run/t8087.scala
+++ b/tests/pending/run/t8087.scala
@@ -5,7 +5,7 @@ trait Foo {
class Bar extends Foo
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
classOf[Bar].getDeclaredFields.foreach(f => {
assert(java.lang.reflect.Modifier.isVolatile(f.getModifiers), f.getName)
})
diff --git a/tests/pending/run/t8091.scala b/tests/pending/run/t8091.scala
index 56af4f7de..35d0e50ba 100644
--- a/tests/pending/run/t8091.scala
+++ b/tests/pending/run/t8091.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val result = "börk börk" flatMap (ch ⇒ if (ch > 127) f"&#x${ch}%04x;" else "" + ch)
println(result)
}
diff --git a/tests/pending/run/t8104/Test_2.scala b/tests/pending/run/t8104/Test_2.scala
index 08451dfb2..4e97cdf9d 100644
--- a/tests/pending/run/t8104/Test_2.scala
+++ b/tests/pending/run/t8104/Test_2.scala
@@ -5,7 +5,7 @@ object Generic {
implicit def materializeGeneric[T, Repr]: Generic.Aux[T, Repr] = macro Macros.impl[T]
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class C(x: Int, y: Int)
import scala.reflect.runtime.universe._
diff --git a/tests/pending/run/t8177f.scala b/tests/pending/run/t8177f.scala
index f50a5d98d..6f9a68c11 100644
--- a/tests/pending/run/t8177f.scala
+++ b/tests/pending/run/t8177f.scala
@@ -14,7 +14,7 @@ class B extends A[Int](null) {
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val methods = classOf[B].getDeclaredMethods.sortBy(_.getName)
assert(methods.forall(_.toGenericString.startsWith("public int")))
}
diff --git a/tests/pending/run/t8190.scala b/tests/pending/run/t8190.scala
index e1bcc8fae..4e6f7c462 100644
--- a/tests/pending/run/t8190.scala
+++ b/tests/pending/run/t8190.scala
@@ -94,7 +94,7 @@ trait Overloads {
def test(x: TreeCopier) = "TreeCopier"
}
-object Test extends App with Overloads {
+object Test extends dotty.runtime.LegacyApp with Overloads {
val buf = scala.collection.mutable.ListBuffer[String]()
def record(result: String): Unit = {
println(result)
diff --git a/tests/pending/run/t8192/Test_2.scala b/tests/pending/run/t8192/Test_2.scala
index 89302083a..dec90ab66 100644
--- a/tests/pending/run/t8192/Test_2.scala
+++ b/tests/pending/run/t8192/Test_2.scala
@@ -6,7 +6,7 @@ class C(x: Int) {
def this(x: String) = this(x.toInt)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(sym: ClassSymbol): Unit = {
def fullyInitializeSymbol(sym: Symbol): Unit = {
val internal = ru.asInstanceOf[scala.reflect.internal.SymbolTable]
diff --git a/tests/pending/run/t8196.scala b/tests/pending/run/t8196.scala
index e219ac166..bb40aa205 100644
--- a/tests/pending/run/t8196.scala
+++ b/tests/pending/run/t8196.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.{ universe => ru }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait FormTrait {
diff --git a/tests/pending/run/t8197.scala b/tests/pending/run/t8197.scala
index 27212cbbd..b510f96f1 100644
--- a/tests/pending/run/t8197.scala
+++ b/tests/pending/run/t8197.scala
@@ -8,7 +8,7 @@ class Foo(val x: A = null) {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// both constructors of `Foo` are applicable. Overloading resolution
// will eliminate the alternative that uses a default argument, therefore
// the vararg constructor is chosen.
diff --git a/tests/pending/run/t8197b.scala b/tests/pending/run/t8197b.scala
index 8b3e0af0d..a9012ddf9 100644
--- a/tests/pending/run/t8197b.scala
+++ b/tests/pending/run/t8197b.scala
@@ -3,6 +3,6 @@ object O {
def foo(s: String)(implicit i: DummyImplicit = null) = 1
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(O.foo("") == 1)
}
diff --git a/tests/pending/run/t8199.scala b/tests/pending/run/t8199.scala
index 265931cca..d84f6fc72 100644
--- a/tests/pending/run/t8199.scala
+++ b/tests/pending/run/t8199.scala
@@ -34,7 +34,7 @@ trait trt0123456789 { def x = Test.checkCallerImplClassName() }
trait trt01234567890 { def x = Test.checkCallerImplClassName() }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def check(c: Class[_]): Unit = {
checkClassName(c.getName)
}
diff --git a/tests/pending/run/t8266-octal-interp.scala b/tests/pending/run/t8266-octal-interp.scala
index f85ae0367..8163ad585 100644
--- a/tests/pending/run/t8266-octal-interp.scala
+++ b/tests/pending/run/t8266-octal-interp.scala
@@ -11,6 +11,6 @@ trait X {
)
}
-object Test extends App with X {
+object Test extends dotty.runtime.LegacyApp with X {
f foreach println
}
diff --git a/tests/pending/run/t8321/Test_2.scala b/tests/pending/run/t8321/Test_2.scala
index 82ec32384..d49442117 100644
--- a/tests/pending/run/t8321/Test_2.scala
+++ b/tests/pending/run/t8321/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(Macros.foo.x)
} \ No newline at end of file
diff --git a/tests/pending/run/t8346.scala b/tests/pending/run/t8346.scala
index 5f3df8417..1c34ab35f 100644
--- a/tests/pending/run/t8346.scala
+++ b/tests/pending/run/t8346.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
import reflect.ClassTag
object SomeEnum extends Enumeration {
diff --git a/tests/pending/run/t8425/Test_2.scala b/tests/pending/run/t8425/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/t8425/Test_2.scala
+++ b/tests/pending/run/t8425/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/t8428.scala b/tests/pending/run/t8428.scala
index 7da1207b7..d79a698d4 100644
--- a/tests/pending/run/t8428.scala
+++ b/tests/pending/run/t8428.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val xs = List.tabulate(4)(List(_))
val i = xs.map(_.iterator).reduce { (a,b) =>
a.hasNext
diff --git a/tests/pending/run/t8437/Test_2.scala b/tests/pending/run/t8437/Test_2.scala
index 47bb84ad0..fef54005f 100644
--- a/tests/pending/run/t8437/Test_2.scala
+++ b/tests/pending/run/t8437/Test_2.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(InvokeBundle.foo)
println(InvokeBundle.bar)
} \ No newline at end of file
diff --git a/tests/pending/run/t8445.scala b/tests/pending/run/t8445.scala
index ed196b62a..72116d8e5 100644
--- a/tests/pending/run/t8445.scala
+++ b/tests/pending/run/t8445.scala
@@ -6,6 +6,6 @@ object X {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(X.y.z.getEnclosingClass.getName == "X$$anon$1")
}
diff --git a/tests/pending/run/t8549.scala b/tests/pending/run/t8549.scala
index 23d9be7aa..c124d99bc 100644
--- a/tests/pending/run/t8549.scala
+++ b/tests/pending/run/t8549.scala
@@ -9,7 +9,7 @@ import scala.reflect.io.File
// )
//
// Use this to re-establish a baseline for serialization compatibility.
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val overwrite: Option[File] = sys.props.get("overwrite.source").map(s => new File(new java.io.File(s)))
def serialize(o: AnyRef): String = {
diff --git a/tests/pending/run/t8549b.scala b/tests/pending/run/t8549b.scala
index c9a086233..da0c16135 100644
--- a/tests/pending/run/t8549b.scala
+++ b/tests/pending/run/t8549b.scala
@@ -6,7 +6,7 @@ class C
class D
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def checkId(cls: Class[_]): Unit = {
val id = cls.getDeclaredField("serialVersionUID").get(null)
assert(id == 42, (cls, id))
diff --git a/tests/pending/run/t8574.scala b/tests/pending/run/t8574.scala
index 9a7f6b2ba..e241868c1 100644
--- a/tests/pending/run/t8574.scala
+++ b/tests/pending/run/t8574.scala
@@ -4,7 +4,7 @@ import annotation._
def foo(t: T) = t
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def checkUID(cls: Class[_], expected: Long) = {
val actual = java.io.ObjectStreamClass.lookup(cls).getSerialVersionUID
assert(actual == expected, s"$actual != expected for ${cls}")
diff --git a/tests/pending/run/t8601e/Test.scala b/tests/pending/run/t8601e/Test.scala
index 838114f6a..efeaafb15 100644
--- a/tests/pending/run/t8601e/Test.scala
+++ b/tests/pending/run/t8601e/Test.scala
@@ -2,7 +2,7 @@ class C {
def foo: Unit = {StaticInit.fld}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
try {
new C().foo
sys.error("StaticInit.<clinit> was not run!")
diff --git a/tests/pending/run/t8610.scala b/tests/pending/run/t8610.scala
index dd9e8e861..978900d42 100644
--- a/tests/pending/run/t8610.scala
+++ b/tests/pending/run/t8610.scala
@@ -7,7 +7,7 @@ case class X(name: String) {
def u: Unit = () // unitarian universalist
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// poignant demonstration
Console println X("Bob").x
}
diff --git a/tests/pending/run/t8611a.scala b/tests/pending/run/t8611a.scala
index 99304df76..4a0d6fb57 100644
--- a/tests/pending/run/t8611a.scala
+++ b/tests/pending/run/t8611a.scala
@@ -7,7 +7,7 @@ object O {
val B: LK = new K with L
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val scrut: O.LK = O.B
scrut match {
case O.A => ???
diff --git a/tests/pending/run/t8611b.scala b/tests/pending/run/t8611b.scala
index cb37f0e07..75114c2ae 100644
--- a/tests/pending/run/t8611b.scala
+++ b/tests/pending/run/t8611b.scala
@@ -30,7 +30,7 @@ object WorkingTab extends WorkingEnum {
val b = Enum("B")
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
testGris()
testWorking()
diff --git a/tests/pending/run/t8611c.scala b/tests/pending/run/t8611c.scala
index 2bd17f29a..325070f4c 100644
--- a/tests/pending/run/t8611c.scala
+++ b/tests/pending/run/t8611c.scala
@@ -5,7 +5,7 @@ object O {
type LK = K with L
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
local
def local = {
diff --git a/tests/pending/run/t8637.scala b/tests/pending/run/t8637.scala
index 8671a6a05..16c042b9a 100644
--- a/tests/pending/run/t8637.scala
+++ b/tests/pending/run/t8637.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.currentMirror
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = currentMirror.mkToolBox()
tb.compile(q"true > true")
tb.typecheck(q"true > true")
diff --git a/tests/pending/run/t8680.scala b/tests/pending/run/t8680.scala
index 2bce09c50..3c4bc8e7d 100644
--- a/tests/pending/run/t8680.scala
+++ b/tests/pending/run/t8680.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def pre(n: Int) = (-n to -1).toStream
def cyc(m: Int) = {
diff --git a/tests/pending/run/t8690.scala b/tests/pending/run/t8690.scala
index ab8b45b2a..cfa47b0e4 100644
--- a/tests/pending/run/t8690.scala
+++ b/tests/pending/run/t8690.scala
@@ -1,7 +1,7 @@
import scala.io.Source
import java.io.ByteArrayInputStream
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val txt = "abcdef"
val in = new ByteArrayInputStream(txt.getBytes());
diff --git a/tests/pending/run/t8764.scala b/tests/pending/run/t8764.scala
index decc658f6..fc4c23e45 100644
--- a/tests/pending/run/t8764.scala
+++ b/tests/pending/run/t8764.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class IntOnly(i: Int, j: Int)
println("IntOnly: should return an unboxed int")
diff --git a/tests/pending/run/t8803.scala b/tests/pending/run/t8803.scala
index 2e5618050..8596408de 100644
--- a/tests/pending/run/t8803.scala
+++ b/tests/pending/run/t8803.scala
@@ -33,7 +33,7 @@ class C extends A with B {
val i4 = new runtime.AbstractFunction0[String] { def apply() = C.this.n }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = new C
println(c.f1())
println(c.f2())
diff --git a/tests/pending/run/t8823.scala b/tests/pending/run/t8823.scala
index 0ac653566..06e3bff69 100644
--- a/tests/pending/run/t8823.scala
+++ b/tests/pending/run/t8823.scala
@@ -4,7 +4,7 @@ class Tuple2Int(val encoding: Long) extends AnyVal with Product2[Int, Int] {
def _2: Int = 2
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
assert(new Tuple2Int(0)._1 == 1)
assert(new Tuple2Int(0)._2 == 2)
}
diff --git a/tests/pending/run/t8845.scala b/tests/pending/run/t8845.scala
index 8ccdbdadc..bb68142e5 100644
--- a/tests/pending/run/t8845.scala
+++ b/tests/pending/run/t8845.scala
@@ -12,6 +12,6 @@ object Interpreter {
finally { }
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Interpreter.break(0)
}
diff --git a/tests/pending/run/t8888.scala b/tests/pending/run/t8888.scala
index 36cc1ddf3..0ddc2ae82 100644
--- a/tests/pending/run/t8888.scala
+++ b/tests/pending/run/t8888.scala
@@ -7,6 +7,6 @@ class C {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
new C().resume
}
diff --git a/tests/pending/run/t889.scala b/tests/pending/run/t889.scala
index f32048819..8e5d82412 100644
--- a/tests/pending/run/t889.scala
+++ b/tests/pending/run/t889.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = List("a")
diff --git a/tests/pending/run/t8931.scala b/tests/pending/run/t8931.scala
index 11718471b..e5e12ae8a 100644
--- a/tests/pending/run/t8931.scala
+++ b/tests/pending/run/t8931.scala
@@ -5,7 +5,7 @@ trait B extends A
class C extends A with B
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val c = classOf[C]
println(c.getGenericInterfaces.toList)
diff --git a/tests/pending/run/t8960.scala b/tests/pending/run/t8960.scala
index a58ac53d3..adecd8513 100644
--- a/tests/pending/run/t8960.scala
+++ b/tests/pending/run/t8960.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def test(o: AnyRef, sp: Boolean = false) = {
val isSpecialized = o.getClass.getSuperclass.getName contains "$sp"
val isDelambdafyMethod = o.getClass.getName contains "$lambda$"
diff --git a/tests/pending/run/t949.scala b/tests/pending/run/t949.scala
index a9c5d08c5..9363f60c6 100644
--- a/tests/pending/run/t949.scala
+++ b/tests/pending/run/t949.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
private def f = new T { val state = State.A }
diff --git a/tests/pending/run/t978.scala b/tests/pending/run/t978.scala
index 012d57fbe..e87e7054a 100644
--- a/tests/pending/run/t978.scala
+++ b/tests/pending/run/t978.scala
@@ -8,7 +8,7 @@ class Foo(val n: Int) {
override def toString = "" + n
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val set = new collection.mutable.HashSet[Foo]
// val set = new collection.jcl.HashSet[Foo]
diff --git a/tests/pending/run/tailcalls.scala b/tests/pending/run/tailcalls.scala
index 8df2dcfcb..d89a89b41 100644
--- a/tests/pending/run/tailcalls.scala
+++ b/tests/pending/run/tailcalls.scala
@@ -193,7 +193,7 @@ object FancyTailCalls {
val f2 = new FancyTailCalls
}
-object PolyObject extends App {
+object PolyObject extends dotty.runtime.LegacyApp {
def tramp[A](x: Int): Int =
if (x > 0)
tramp[A](x - 1)
diff --git a/tests/pending/run/tcpoly_overriding.scala b/tests/pending/run/tcpoly_overriding.scala
index 32174ad8b..01b9c29ac 100644
--- a/tests/pending/run/tcpoly_overriding.scala
+++ b/tests/pending/run/tcpoly_overriding.scala
@@ -14,6 +14,6 @@ class B extends A[List] {
def b: List[Int] = List(1)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Console.println((new B).b(0))
}
diff --git a/tests/pending/run/toolbox_console_reporter.scala b/tests/pending/run/toolbox_console_reporter.scala
index 5a3157780..53cbcb0fb 100644
--- a/tests/pending/run/toolbox_console_reporter.scala
+++ b/tests/pending/run/toolbox_console_reporter.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, mkConsoleFrontEnd}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
//val oldErr = Console.err;
val baos = new java.io.ByteArrayOutputStream()
val errs = new java.io.PrintStream(baos)
diff --git a/tests/pending/run/toolbox_current_run_compiles.scala b/tests/pending/run/toolbox_current_run_compiles.scala
index 68760a6f4..702741c2e 100644
--- a/tests/pending/run/toolbox_current_run_compiles.scala
+++ b/tests/pending/run/toolbox_current_run_compiles.scala
@@ -17,7 +17,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val cm = ru.runtimeMirror(getClass.getClassLoader)
val toolbox = cm.mkToolBox()
toolbox.eval(toolbox.parse("""{
diff --git a/tests/pending/run/toolbox_default_reporter_is_silent.scala b/tests/pending/run/toolbox_default_reporter_is_silent.scala
index 691c54ed9..694720721 100644
--- a/tests/pending/run/toolbox_default_reporter_is_silent.scala
+++ b/tests/pending/run/toolbox_default_reporter_is_silent.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
toolbox.eval(reify{
object Utils {
diff --git a/tests/pending/run/toolbox_parse_package.scala b/tests/pending/run/toolbox_parse_package.scala
index d566e760f..a4ba71aaa 100644
--- a/tests/pending/run/toolbox_parse_package.scala
+++ b/tests/pending/run/toolbox_parse_package.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
println(toolbox.parse("package foo { object bar }"))
}
diff --git a/tests/pending/run/toolbox_silent_reporter.scala b/tests/pending/run/toolbox_silent_reporter.scala
index d3a471005..72109b822 100644
--- a/tests/pending/run/toolbox_silent_reporter.scala
+++ b/tests/pending/run/toolbox_silent_reporter.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, mkSilentFrontEnd}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox(options = "-deprecation", frontEnd = mkSilentFrontEnd())
toolbox.eval(reify{
object Utils {
diff --git a/tests/pending/run/toolbox_typecheck_implicitsdisabled.scala b/tests/pending/run/toolbox_typecheck_implicitsdisabled.scala
index 686592479..542a44b7a 100644
--- a/tests/pending/run/toolbox_typecheck_implicitsdisabled.scala
+++ b/tests/pending/run/toolbox_typecheck_implicitsdisabled.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
val tree1 = Block(List(
diff --git a/tests/pending/run/toolbox_typecheck_inferimplicitvalue.scala b/tests/pending/run/toolbox_typecheck_inferimplicitvalue.scala
index 9f2f73397..73c47e01f 100644
--- a/tests/pending/run/toolbox_typecheck_inferimplicitvalue.scala
+++ b/tests/pending/run/toolbox_typecheck_inferimplicitvalue.scala
@@ -7,7 +7,7 @@ object C {
implicit object MC extends C
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
println(tb.inferImplicitValue(typeOf[C]))
}
diff --git a/tests/pending/run/toolbox_typecheck_macrosdisabled.scala b/tests/pending/run/toolbox_typecheck_macrosdisabled.scala
index 5466cb776..2aa0202e7 100644
--- a/tests/pending/run/toolbox_typecheck_macrosdisabled.scala
+++ b/tests/pending/run/toolbox_typecheck_macrosdisabled.scala
@@ -8,7 +8,7 @@ import internal._
// have accidentally changed the way type tags reify. If so, validate
// that your changes are accurate and update the check file.
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
val rupkg = cm.staticModule("scala.reflect.runtime.package")
val rusym = reificationSupport.selectTerm(rupkg, "universe")
diff --git a/tests/pending/run/toolbox_typecheck_macrosdisabled2.scala b/tests/pending/run/toolbox_typecheck_macrosdisabled2.scala
index 606d3d40c..c554110ed 100644
--- a/tests/pending/run/toolbox_typecheck_macrosdisabled2.scala
+++ b/tests/pending/run/toolbox_typecheck_macrosdisabled2.scala
@@ -8,7 +8,7 @@ import internal._
// have accidentally changed the way type tags reify. If so, validate
// that your changes are accurate and update the check file.
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val toolbox = cm.mkToolBox()
val rupkg = cm.staticModule("scala.reflect.runtime.package")
val rusym = reificationSupport.selectTerm(rupkg, "universe")
diff --git a/tests/pending/run/tuples.scala b/tests/pending/run/tuples.scala
index 4980f2fe6..e3fd85dc6 100644
--- a/tests/pending/run/tuples.scala
+++ b/tests/pending/run/tuples.scala
@@ -1,6 +1,6 @@
import Function._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
var xyz: (Int, String, Boolean) = _
xyz = (1, "abc", true)
Console.println(xyz)
diff --git a/tests/pending/run/typealias_overriding.scala b/tests/pending/run/typealias_overriding.scala
index 4b6a0037e..e19ae0bed 100644
--- a/tests/pending/run/typealias_overriding.scala
+++ b/tests/pending/run/typealias_overriding.scala
@@ -1,7 +1,7 @@
// this bug (http://scala-webapps.epfl.ch/bugtracking/bugs/displayItem.do?id=1065)
// was caused by Uncurry not normalizing all the types
// (more specifically the argument/return types of an anonymous Function)
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
trait AddRemove {
type TNode <: NodeImpl;
trait NodeImpl;
diff --git a/tests/pending/run/typecheck/Test_2.scala b/tests/pending/run/typecheck/Test_2.scala
index 01bf5198c..b79cc3b31 100644
--- a/tests/pending/run/typecheck/Test_2.scala
+++ b/tests/pending/run/typecheck/Test_2.scala
@@ -2,7 +2,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
val tb = cm.mkToolBox()
diff --git a/tests/pending/run/typed-annotated/Test_2.scala b/tests/pending/run/typed-annotated/Test_2.scala
index acfddae94..0fc472aa6 100644
--- a/tests/pending/run/typed-annotated/Test_2.scala
+++ b/tests/pending/run/typed-annotated/Test_2.scala
@@ -1,3 +1,3 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
Macros.foo
} \ No newline at end of file
diff --git a/tests/pending/run/typetags_core.scala b/tests/pending/run/typetags_core.scala
index 877abb7bb..9250b4f32 100644
--- a/tests/pending/run/typetags_core.scala
+++ b/tests/pending/run/typetags_core.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[TypeTag[Byte]] eq TypeTag.Byte)
println(implicitly[TypeTag[Byte]])
println(implicitly[TypeTag[Short]] eq TypeTag.Short)
diff --git a/tests/pending/run/typetags_multi.scala b/tests/pending/run/typetags_multi.scala
index e03bd3037..046de29ab 100644
--- a/tests/pending/run/typetags_multi.scala
+++ b/tests/pending/run/typetags_multi.scala
@@ -1,6 +1,6 @@
import scala.reflect.runtime.universe._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(implicitly[TypeTag[Int]])
println(implicitly[TypeTag[Array[Int]]])
println(implicitly[TypeTag[Array[Array[Int]]]])
diff --git a/tests/pending/run/typetags_serialize.scala b/tests/pending/run/typetags_serialize.scala
index bfc739210..aa0414096 100644
--- a/tests/pending/run/typetags_serialize.scala
+++ b/tests/pending/run/typetags_serialize.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class C[A] {
def m(a: A): Int = 5
}
diff --git a/tests/pending/run/typetags_symbolof_x.scala b/tests/pending/run/typetags_symbolof_x.scala
index 333c4e7da..9f740cd02 100644
--- a/tests/pending/run/typetags_symbolof_x.scala
+++ b/tests/pending/run/typetags_symbolof_x.scala
@@ -3,7 +3,7 @@ import scala.reflect.runtime.universe._
class C
object C
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
type T = Int
type Id[X] = X
println(symbolOf[Int])
diff --git a/tests/pending/run/typetags_without_scala_reflect_manifest_lookup.scala b/tests/pending/run/typetags_without_scala_reflect_manifest_lookup.scala
index 6fd3d2dc2..2b1af02f2 100644
--- a/tests/pending/run/typetags_without_scala_reflect_manifest_lookup.scala
+++ b/tests/pending/run/typetags_without_scala_reflect_manifest_lookup.scala
@@ -5,7 +5,7 @@ object Test extends DirectTest {
override def extraSettings = "-cp " + sys.props("partest.lib") + " -d \"" + testOutput.path + "\""
def code = """
- object Test extends App {
+ object Test extends dotty.runtime.LegacyApp {
// manifest lookup also involves type tag lookup
// because we support manifest <-> typetag convertability
//
diff --git a/tests/pending/run/typetags_without_scala_reflect_typetag_lookup.scala b/tests/pending/run/typetags_without_scala_reflect_typetag_lookup.scala
index 3d2b9f77b..819efc92f 100644
--- a/tests/pending/run/typetags_without_scala_reflect_typetag_lookup.scala
+++ b/tests/pending/run/typetags_without_scala_reflect_typetag_lookup.scala
@@ -16,7 +16,7 @@ object Test extends StoreReporterDirectTest {
}
def app = """
- object Test extends App {
+ object Test extends dotty.runtime.LegacyApp {
// tries to materialize a type tag not having scala-reflect.jar on the classpath
// even though it's easy to materialize a type tag of Int, this line will fail
// because materialization involves classes from scala-reflect.jar
diff --git a/tests/pending/run/unboxingBug.scala b/tests/pending/run/unboxingBug.scala
index 5f129b64b..e3cef18b3 100644
--- a/tests/pending/run/unboxingBug.scala
+++ b/tests/pending/run/unboxingBug.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(identity('a').toInt)
println('a'.toInt)
println(identity('a').asInstanceOf[Int])
diff --git a/tests/pending/run/unreachable.scala b/tests/pending/run/unreachable.scala
index bb907c92b..6a428c6ef 100644
--- a/tests/pending/run/unreachable.scala
+++ b/tests/pending/run/unreachable.scala
@@ -1,7 +1,7 @@
import scala.util.Random.nextInt
import scala.sys.error
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def unreachableNormalExit: Int = {
return 42
0
diff --git a/tests/pending/run/valueclasses-classmanifest-basic.scala b/tests/pending/run/valueclasses-classmanifest-basic.scala
index 50addda35..8eab07c30 100644
--- a/tests/pending/run/valueclasses-classmanifest-basic.scala
+++ b/tests/pending/run/valueclasses-classmanifest-basic.scala
@@ -1,6 +1,6 @@
class Foo(val x: Int) extends AnyVal
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[Foo])
}
diff --git a/tests/pending/run/valueclasses-classmanifest-existential.scala b/tests/pending/run/valueclasses-classmanifest-existential.scala
index 6bcd7cf94..e8351557e 100644
--- a/tests/pending/run/valueclasses-classmanifest-existential.scala
+++ b/tests/pending/run/valueclasses-classmanifest-existential.scala
@@ -1,6 +1,6 @@
class Foo[T](val x: T) extends AnyVal
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[Foo[_]])
}
diff --git a/tests/pending/run/valueclasses-classmanifest-generic.scala b/tests/pending/run/valueclasses-classmanifest-generic.scala
index 5efcaed95..d37155d3c 100644
--- a/tests/pending/run/valueclasses-classmanifest-generic.scala
+++ b/tests/pending/run/valueclasses-classmanifest-generic.scala
@@ -1,6 +1,6 @@
class Foo[T](val x: T) extends AnyVal
@deprecated("Suppress warnings", since="2.11")
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(classManifest[Foo[String]])
}
diff --git a/tests/pending/run/valueclasses-classtag-basic.scala b/tests/pending/run/valueclasses-classtag-basic.scala
index cbad29609..ab86f58a6 100644
--- a/tests/pending/run/valueclasses-classtag-basic.scala
+++ b/tests/pending/run/valueclasses-classtag-basic.scala
@@ -1,5 +1,5 @@
class Foo(val x: Int) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.classTag[Foo])
}
diff --git a/tests/pending/run/valueclasses-classtag-existential.scala b/tests/pending/run/valueclasses-classtag-existential.scala
index 03048710b..1e5cfe7a1 100644
--- a/tests/pending/run/valueclasses-classtag-existential.scala
+++ b/tests/pending/run/valueclasses-classtag-existential.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.classTag[Foo[_]])
}
diff --git a/tests/pending/run/valueclasses-classtag-generic.scala b/tests/pending/run/valueclasses-classtag-generic.scala
index 34ac43729..d93ca5f0a 100644
--- a/tests/pending/run/valueclasses-classtag-generic.scala
+++ b/tests/pending/run/valueclasses-classtag-generic.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.classTag[Foo[String]])
}
diff --git a/tests/pending/run/valueclasses-constr.scala b/tests/pending/run/valueclasses-constr.scala
index 652d8d8d2..73ac29435 100644
--- a/tests/pending/run/valueclasses-constr.scala
+++ b/tests/pending/run/valueclasses-constr.scala
@@ -58,7 +58,7 @@ package test3 {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val y1: test1.TOD = new test1.TOD(1000)
val y2: test2.TOD = test2.Client.newTOD(1000)
diff --git a/tests/pending/run/valueclasses-manifest-basic.scala b/tests/pending/run/valueclasses-manifest-basic.scala
index 663e6c89d..3ea2bffe3 100644
--- a/tests/pending/run/valueclasses-manifest-basic.scala
+++ b/tests/pending/run/valueclasses-manifest-basic.scala
@@ -1,5 +1,5 @@
class Foo(val x: Int) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(manifest[Foo])
}
diff --git a/tests/pending/run/valueclasses-manifest-existential.scala b/tests/pending/run/valueclasses-manifest-existential.scala
index 491bee7ce..c3fb044e1 100644
--- a/tests/pending/run/valueclasses-manifest-existential.scala
+++ b/tests/pending/run/valueclasses-manifest-existential.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(manifest[Foo[_]])
}
diff --git a/tests/pending/run/valueclasses-manifest-generic.scala b/tests/pending/run/valueclasses-manifest-generic.scala
index 9d0bf4b59..349487870 100644
--- a/tests/pending/run/valueclasses-manifest-generic.scala
+++ b/tests/pending/run/valueclasses-manifest-generic.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(manifest[Foo[String]])
}
diff --git a/tests/pending/run/valueclasses-typetag-basic.scala b/tests/pending/run/valueclasses-typetag-basic.scala
index 897767027..9273ad638 100644
--- a/tests/pending/run/valueclasses-typetag-basic.scala
+++ b/tests/pending/run/valueclasses-typetag-basic.scala
@@ -1,5 +1,5 @@
class Foo(val x: Int) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.runtime.universe.typeOf[Foo])
}
diff --git a/tests/pending/run/valueclasses-typetag-existential.scala b/tests/pending/run/valueclasses-typetag-existential.scala
index ab935fb0d..8c1dd2a1a 100644
--- a/tests/pending/run/valueclasses-typetag-existential.scala
+++ b/tests/pending/run/valueclasses-typetag-existential.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.runtime.universe.typeOf[Foo[_]])
}
diff --git a/tests/pending/run/valueclasses-typetag-generic.scala b/tests/pending/run/valueclasses-typetag-generic.scala
index dd5e996b8..9253e52e9 100644
--- a/tests/pending/run/valueclasses-typetag-generic.scala
+++ b/tests/pending/run/valueclasses-typetag-generic.scala
@@ -1,5 +1,5 @@
class Foo[T](val x: T) extends AnyVal
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(scala.reflect.runtime.universe.typeOf[Foo[String]])
}
diff --git a/tests/pending/run/var-arity-class-symbol.scala b/tests/pending/run/var-arity-class-symbol.scala
index 29fe960eb..2a7d32987 100644
--- a/tests/pending/run/var-arity-class-symbol.scala
+++ b/tests/pending/run/var-arity-class-symbol.scala
@@ -1,5 +1,5 @@
import scala.reflect.runtime.universe._, definitions._
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// Tuples
assert(TupleClass.seq.size == 22)
assert(TupleClass(0) == NoSymbol)
diff --git a/tests/pending/run/viewtest.check b/tests/pending/run/viewtest.check
deleted file mode 100644
index 6e0fe81a6..000000000
--- a/tests/pending/run/viewtest.check
+++ /dev/null
@@ -1,12 +0,0 @@
-SeqViewZ(...)
-ys defined
-mapping 1
-2
-SeqViewMS(...)
-mapping 3
-4
-SeqViewM(...)
-mapping 1
-mapping 2
-mapping 3
-List(2, 3, 4)
diff --git a/tests/pending/run/viewtest.scala b/tests/pending/run/viewtest.scala
deleted file mode 100755
index 581958e9a..000000000
--- a/tests/pending/run/viewtest.scala
+++ /dev/null
@@ -1,45 +0,0 @@
-object Test extends App {
- import collection._
- val xs: SeqView[(String, Int), Seq[_]] = List("x").view.zip(Stream.from(0))
- println(xs)
-
- val ys = List(1, 2, 3).view map { x => println("mapping "+x); x + 1 }
- println("ys defined")
- println(ys.head)
- println(ys.tail)
- println(ys(2))
- println(ys)
- println(ys.force)
-
- val zs = Array(1, 2, 3).view
- val as: SeqView[Int, Array[Int]] = zs map (_ + 1)
- val bs: Array[Int] = as.force
- val cs = zs.reverse
- cs(0) += 1
- assert(cs.force.deep == Array(4, 2, 1).deep)
- assert(zs(2) == 4)
- assert(bs.deep == Array(2, 3, 4).deep)
-}
-
-/* crash confirmed.
-2.8 regression: CCE when zipping list projection with stream
-Reported by: szeiger Owned by: odersky
-Priority: normal Component: Standard Library
-Keywords: collections, zip Cc:
-Fixed in version:
-Description
-
-Welcome to Scala version 2.8.0.r18784-b20090925021043 (Java HotSpot(TM) Client VM, Java 1.6.0_11).
-Type in expressions to have them evaluated.
-Type :help for more information.
-
-scala> List("x").view.zip(Stream.from(0))List("x").view.zip(Stream.from(0))
-java.lang.ClassCastException: scala.collection.generic.IterableViewTemplate$$anon$8 cannot be cast to scala.collection.generic.SequenceView
- at .<init>(<console>:5)
- at .<clinit>(<console>)
- at RequestResult$.<init>(<console>:4)
- at RequestResult$.<clinit>(<console>)
- at RequestResult$result(<console>)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.Nat...
-*/
diff --git a/tests/pending/run/virtpatmat_alts.scala b/tests/pending/run/virtpatmat_alts.scala
index d1dfa8a4a..d76b29307 100644
--- a/tests/pending/run/virtpatmat_alts.scala
+++ b/tests/pending/run/virtpatmat_alts.scala
@@ -1,7 +1,7 @@
/*
* filter: It would fail on the following input
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
(true, true) match {
case (true, true) | (false, false) => 1
}
diff --git a/tests/pending/run/virtpatmat_apply.scala b/tests/pending/run/virtpatmat_apply.scala
index 57259d0b3..838d456cb 100644
--- a/tests/pending/run/virtpatmat_apply.scala
+++ b/tests/pending/run/virtpatmat_apply.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List(1, 2, 3) match {
case Nil => println("FAIL")
case x :: y :: xs if xs.length == 2 => println("FAIL")
diff --git a/tests/pending/run/virtpatmat_casting.scala b/tests/pending/run/virtpatmat_casting.scala
index a36daec6f..81b52ee1b 100644
--- a/tests/pending/run/virtpatmat_casting.scala
+++ b/tests/pending/run/virtpatmat_casting.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
println(List(1,2,3) match {
case Nil => List(0)
// since the :: extractor's argument must be a ::, there has to be a cast before its unapply is invoked
diff --git a/tests/pending/run/virtpatmat_extends_product.scala b/tests/pending/run/virtpatmat_extends_product.scala
index 4b4bc634a..7d290083e 100644
--- a/tests/pending/run/virtpatmat_extends_product.scala
+++ b/tests/pending/run/virtpatmat_extends_product.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class AnnotationInfo(a: String, b: Int) extends Product2[String, Int] {
def _1 = a
def _2 = b
diff --git a/tests/pending/run/virtpatmat_literal.scala b/tests/pending/run/virtpatmat_literal.scala
index e94f7d627..682e6b765 100644
--- a/tests/pending/run/virtpatmat_literal.scala
+++ b/tests/pending/run/virtpatmat_literal.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = 1
1 match {
case 2 => println("FAILED")
diff --git a/tests/pending/run/virtpatmat_nested_lists.scala b/tests/pending/run/virtpatmat_nested_lists.scala
index d1aa68ea9..17199ea86 100644
--- a/tests/pending/run/virtpatmat_nested_lists.scala
+++ b/tests/pending/run/virtpatmat_nested_lists.scala
@@ -1,6 +1,6 @@
/*
* filter: It would fail on the following input
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List(List(1), List(2)) match { case x :: (y :: Nil) :: Nil => println(y) }
}
diff --git a/tests/pending/run/virtpatmat_opt_sharing.scala b/tests/pending/run/virtpatmat_opt_sharing.scala
index d2c42cab4..0a66a753b 100644
--- a/tests/pending/run/virtpatmat_opt_sharing.scala
+++ b/tests/pending/run/virtpatmat_opt_sharing.scala
@@ -1,7 +1,7 @@
/*
* filter: It would fail on the following input
*/
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
virtMatch()
def virtMatch() = {
List(1, 3, 4, 7) match {
diff --git a/tests/pending/run/virtpatmat_partial.scala b/tests/pending/run/virtpatmat_partial.scala
index 92e262a29..b93a54cbc 100644
--- a/tests/pending/run/virtpatmat_partial.scala
+++ b/tests/pending/run/virtpatmat_partial.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val a = Map("a" -> Some(1), "b" -> None)
println(a)
diff --git a/tests/pending/run/virtpatmat_partial_backquoted.scala b/tests/pending/run/virtpatmat_partial_backquoted.scala
index ed89a605f..21f686dcf 100644
--- a/tests/pending/run/virtpatmat_partial_backquoted.scala
+++ b/tests/pending/run/virtpatmat_partial_backquoted.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
class Region { override def toString = "You got me!" }
class SymbolType
case class SymbolInfo(tp: SymbolType, regions: List[Region], x: Any)
diff --git a/tests/pending/run/virtpatmat_stringinterp.scala b/tests/pending/run/virtpatmat_stringinterp.scala
index c6c951e6e..6ce1bf9c5 100644
--- a/tests/pending/run/virtpatmat_stringinterp.scala
+++ b/tests/pending/run/virtpatmat_stringinterp.scala
@@ -1,7 +1,7 @@
import scala.language.{ implicitConversions }
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Node(x: Int)
implicit def sc2xml(sc: StringContext): XMLContext = new XMLContext(sc)
diff --git a/tests/pending/run/virtpatmat_switch.scala b/tests/pending/run/virtpatmat_switch.scala
index 2f2e210d9..5cdf271d5 100644
--- a/tests/pending/run/virtpatmat_switch.scala
+++ b/tests/pending/run/virtpatmat_switch.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def intSwitch(x: Int) = x match {
case 0 => "zero"
case 1 => "one"
diff --git a/tests/pending/run/virtpatmat_tailcalls_verifyerror.scala b/tests/pending/run/virtpatmat_tailcalls_verifyerror.scala
index 6d33883df..46c75cf9c 100644
--- a/tests/pending/run/virtpatmat_tailcalls_verifyerror.scala
+++ b/tests/pending/run/virtpatmat_tailcalls_verifyerror.scala
@@ -1,5 +1,5 @@
// shouldn't result in a verify error when run...
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
@annotation.tailrec
final def test(meh: Boolean): Boolean = {
Some("a") match {
diff --git a/tests/pending/run/virtpatmat_try.scala b/tests/pending/run/virtpatmat_try.scala
index f417488c6..2cd05b799 100644
--- a/tests/pending/run/virtpatmat_try.scala
+++ b/tests/pending/run/virtpatmat_try.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class A(val x: String) extends Throwable
class B extends Exception { override def toString = "B" }
def bla = 0
diff --git a/tests/pending/run/virtpatmat_typed.scala b/tests/pending/run/virtpatmat_typed.scala
index 3693a8131..bf12fd7a5 100644
--- a/tests/pending/run/virtpatmat_typed.scala
+++ b/tests/pending/run/virtpatmat_typed.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
("foo": Any) match {
case x: Int => println("FAILED")
case x: String => println("OK "+ x)
diff --git a/tests/pending/run/virtpatmat_typetag.scala b/tests/pending/run/virtpatmat_typetag.scala
index 02ec928ed..3654decda 100644
--- a/tests/pending/run/virtpatmat_typetag.scala
+++ b/tests/pending/run/virtpatmat_typetag.scala
@@ -12,7 +12,7 @@ trait Extractors {
}
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def typeMatch[T: ClassTag](a: Any) = a match {
case x : T => println(x +" is a "+ implicitly[ClassTag[T]])
case _ => println(a+ " is not a "+ implicitly[ClassTag[T]] +"; it's a "+ a.getClass)
diff --git a/tests/pending/run/virtpatmat_unapply.scala b/tests/pending/run/virtpatmat_unapply.scala
index 76e44938b..9915b8d92 100644
--- a/tests/pending/run/virtpatmat_unapply.scala
+++ b/tests/pending/run/virtpatmat_unapply.scala
@@ -5,7 +5,7 @@ object IntList {
def apply(x: Int, xs: IntList) = new IntList(x, xs)
}
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
IntList(1, IntList(2, NilIL)) match {
case IntList(a1, IntList(a2, IntList(a3, y))) => println(a1 + a2 + a3)
case IntList(x, y) => println(x)
diff --git a/tests/pending/run/virtpatmat_unapplyprod.scala b/tests/pending/run/virtpatmat_unapplyprod.scala
index cd7f8a3dc..773c6230d 100644
--- a/tests/pending/run/virtpatmat_unapplyprod.scala
+++ b/tests/pending/run/virtpatmat_unapplyprod.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
case class Foo(x: Int, y: String)
Foo(2, "3") match {
diff --git a/tests/pending/run/virtpatmat_unapplyseq.scala b/tests/pending/run/virtpatmat_unapplyseq.scala
index 1ebbce393..e202c8d27 100644
--- a/tests/pending/run/virtpatmat_unapplyseq.scala
+++ b/tests/pending/run/virtpatmat_unapplyseq.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
List(1,2,3) match {
case Seq(x, y, z) => println(x * y * z)
}
diff --git a/tests/pending/run/virtpatmat_valdef.scala b/tests/pending/run/virtpatmat_valdef.scala
index 77c6adacd..b3a89afc1 100644
--- a/tests/pending/run/virtpatmat_valdef.scala
+++ b/tests/pending/run/virtpatmat_valdef.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
// patterns in valdefs...
// TODO: irrefutability should indicate we don't actually need to test, just deconstruct
val (modified, result) : (Boolean, String) = (true, null)
diff --git a/tests/pending/run/weakconform.scala b/tests/pending/run/weakconform.scala
index 30a12b929..e13390730 100755
--- a/tests/pending/run/weakconform.scala
+++ b/tests/pending/run/weakconform.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
val x: Float = 10/3
assert(x == 3.0)
}