From 4a0cff8faf536c3ff75390d5bfcaef3334f35c18 Mon Sep 17 00:00:00 2001 From: Matt Bovel Date: Mon, 6 May 2024 11:43:15 +0200 Subject: [PATCH] Move annot-* printing tests to pos tests --- tests/{printing => pos}/annot-18064.check | 0 tests/{printing => pos}/annot-18064.scala | 2 ++ tests/{printing => pos}/annot-19846b.check | 0 tests/printing/annot-19846b.scala | 7 ------- 4 files changed, 2 insertions(+), 7 deletions(-) rename tests/{printing => pos}/annot-18064.check (100%) rename tests/{printing => pos}/annot-18064.scala (84%) rename tests/{printing => pos}/annot-19846b.check (100%) delete mode 100644 tests/printing/annot-19846b.scala diff --git a/tests/printing/annot-18064.check b/tests/pos/annot-18064.check similarity index 100% rename from tests/printing/annot-18064.check rename to tests/pos/annot-18064.check diff --git a/tests/printing/annot-18064.scala b/tests/pos/annot-18064.scala similarity index 84% rename from tests/printing/annot-18064.scala rename to tests/pos/annot-18064.scala index 95554fd3a1b7..b6a67ea9ebe7 100644 --- a/tests/printing/annot-18064.scala +++ b/tests/pos/annot-18064.scala @@ -1,3 +1,5 @@ +//> using options "-Xprint:typer" + class myAnnot[T]() extends annotation.Annotation trait Tensor[T]: diff --git a/tests/printing/annot-19846b.check b/tests/pos/annot-19846b.check similarity index 100% rename from tests/printing/annot-19846b.check rename to tests/pos/annot-19846b.check diff --git a/tests/printing/annot-19846b.scala b/tests/printing/annot-19846b.scala deleted file mode 100644 index 951a3c8116ff..000000000000 --- a/tests/printing/annot-19846b.scala +++ /dev/null @@ -1,7 +0,0 @@ -class lambdaAnnot(g: () => Int) extends annotation.StaticAnnotation - -def f(x: Int): Int @lambdaAnnot(() => x) = x - -object Test: - val y: Int = ??? - val z /* : Int @lambdaAnnot(() => y) */ = f(y)