From 6e73e5573beb8d4439b65b4136c189106bbe3200 Mon Sep 17 00:00:00 2001 From: Jamie Willis Date: Sat, 27 Apr 2024 13:24:39 +0100 Subject: [PATCH] test(parsley-debug): reworked the overloadings --- .../src/test/scala/annotation/AnnotationTestObjects.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parsley-debug/shared/src/test/scala/annotation/AnnotationTestObjects.scala b/parsley-debug/shared/src/test/scala/annotation/AnnotationTestObjects.scala index cec34eefb..51aae99a3 100644 --- a/parsley-debug/shared/src/test/scala/annotation/AnnotationTestObjects.scala +++ b/parsley-debug/shared/src/test/scala/annotation/AnnotationTestObjects.scala @@ -45,11 +45,11 @@ abstract class Tokens { @experimental @parsley.debuggable private object overloads { - def checkNo(symb: String, name: String, reasonGiven: String): Parsley[Nothing] = checkNo(symb, name, reasonGiven) - def checkNo(symb: String, reason: String): Parsley[Nothing] = checkNo(symb, reason) + def foo(x: Int) = pure(x) + def foo(s: String) = string(s) - lazy val p: Parsley[Int] = checkNo("", "", "") - lazy val q: Parsley[Int] = checkNo("", "") + lazy val p: Parsley[Int] = foo(7) + lazy val q: Parsley[String] = foo("hello") } @experimental @parsley.debuggable