From 3185bfb802b946f283599afdddb6dc4429861789 Mon Sep 17 00:00:00 2001 From: Ondrej Lhotak Date: Tue, 15 Jun 2021 10:52:15 -0400 Subject: [PATCH] remove checkfiles for non-deterministic enum init tests --- tests/init/neg/enum-desugared.check | 20 -------------------- tests/init/neg/enum.check | 9 --------- 2 files changed, 29 deletions(-) delete mode 100644 tests/init/neg/enum-desugared.check delete mode 100644 tests/init/neg/enum.check diff --git a/tests/init/neg/enum-desugared.check b/tests/init/neg/enum-desugared.check deleted file mode 100644 index d3490b2090ba..000000000000 --- a/tests/init/neg/enum-desugared.check +++ /dev/null @@ -1,20 +0,0 @@ --- Error: tests/init/neg/enum-desugared.scala:17:15 -------------------------------------------------------------------- -17 | Array(this.LazyErrorId, this.NoExplanationID) // error // error - | ^^^^^^^^^^^^^^^^ - | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments - | - | The unsafe promotion may cause the following problem(s): - | - | 1. Calling the external method method name may cause initialization errors. Calling trace: - | -> override def productPrefix: String = this.name() [ enum-desugared.scala:29 ] - | -> Array(this.LazyErrorId, this.NoExplanationID) // error // error [ enum-desugared.scala:17 ] --- Error: tests/init/neg/enum-desugared.scala:17:33 -------------------------------------------------------------------- -17 | Array(this.LazyErrorId, this.NoExplanationID) // error // error - | ^^^^^^^^^^^^^^^^^^^^ - | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments - | - | The unsafe promotion may cause the following problem(s): - | - | 1. Calling the external method method ordinal may cause initialization errors. Calling trace: - | -> def errorNumber: Int = this.ordinal() - 2 [ enum-desugared.scala:8 ] - | -> Array(this.LazyErrorId, this.NoExplanationID) // error // error [ enum-desugared.scala:17 ] diff --git a/tests/init/neg/enum.check b/tests/init/neg/enum.check deleted file mode 100644 index 0ab4f2db5c76..000000000000 --- a/tests/init/neg/enum.check +++ /dev/null @@ -1,9 +0,0 @@ --- Error: tests/init/neg/enum.scala:4:8 -------------------------------------------------------------------------------- -4 | NoExplanationID // error - | ^ - | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments - | - | The unsafe promotion may cause the following problem(s): - | - | 1. Calling the external method method name may cause initialization errors. Calling trace: - | -> NoExplanationID // error [ enum.scala:4 ]