Skip to content

Failed to reify counterexample around generic lists and tuples. #1172

@waalge

Description

@waalge

What Git revision are you using?

aiken v1.1.17+35e41a1

What operating system are you using, and which version?

nixos

Describe what the problem is?

Some combitation of fuzz, option, and tuple crashes the compiler.
MRE here

$aiken check
    Compiling waalge/mre-fail-option-fail 0.0.0 (.)
    Compiling aiken-lang/stdlib v2.2.0 (./build/packages/aiken-lang-stdlib)
    Compiling aiken-lang/fuzz v2.1.1 (./build/packages/aiken-lang-fuzz)
   Collecting all tests scenarios across all modules
      Testing ...

   aiken::fatal::error
   Whoops! You found a bug in the Aiken compiler.

   Please report this error at https://github.com/aiken-lang/aiken/issues/new.
   In your bug report please provide the information below and if possible the code
   that produced it.

   Operating System: linux
   Architecture:     x86_64
   Version:          v1.1.17+35e41a1

   crates/aiken-lang/src/test_framework.rs:1250:22

       failed to reify counterexample?: "invalid type annotation. expected List but got: App { public: true, contains_opaque: false, module: \"\", name: \"ByteArray\", args: [], alias: None }"

What should be the expected behavior?

Metadata

Metadata

Assignees

Labels

testingAll things regarding the aiken test framework

Type

Projects

Status

🫡 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions