fix: disallow unknown type assignments and reads

This commit is contained in:
2025-02-07 00:23:41 +00:00
parent 277d2f66af
commit bc5f28ab52
2 changed files with 28 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class ParallelExamplesSpec extends AnyFlatSpec with BeforeAndAfterAll with Paral
(p.toString, List(200))
} ++
allWaccFiles("wacc-examples/invalid/whack").map { p =>
(p.toString, List(0, 100, 200))
(p.toString, List(100, 200))
}
// tests go here
@@ -82,7 +82,7 @@ class ParallelExamplesSpec extends AnyFlatSpec with BeforeAndAfterAll with Paral
// "wacc-examples/invalid/semanticErr/variables",
// "wacc-examples/invalid/semanticErr/while",
// invalid (whack)
"wacc-examples/invalid/whack"
// "wacc-examples/invalid/whack"
// format: on
// format: on
).find(filename.contains).isDefined