Introduce acceptance test 107 illustrating compiler crash
```
crates/aiken-lang/src/gen_uplc.rs:4515:30
internal error: entered unreachable code: Shouldn't call anything other than var or apply
Lambda {
parameter_name: Name {
text: "__no_inline__",
unique: Unique(
0,
),
},
body: Var(
Name {
text: "tests_new_list_unbound",
unique: Unique(
0,
),
},
),
}
```
This commit is contained in:
7
examples/acceptance_tests/107/aiken.lock
Normal file
7
examples/acceptance_tests/107/aiken.lock
Normal file
@@ -0,0 +1,7 @@
|
||||
# This file was generated by Aiken
|
||||
# You typically do not need to edit this file
|
||||
|
||||
requirements = []
|
||||
packages = []
|
||||
|
||||
[etags]
|
||||
9
examples/acceptance_tests/107/aiken.toml
Normal file
9
examples/acceptance_tests/107/aiken.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
name = "aiken-lang/107"
|
||||
version = "0.0.0"
|
||||
license = "Apache-2.0"
|
||||
description = "Aiken contracts for project 'aiken-lang/107'"
|
||||
|
||||
[repository]
|
||||
user = "aiken-lang"
|
||||
project = "107"
|
||||
platform = "github"
|
||||
7
examples/acceptance_tests/107/lib/tests.ak
Normal file
7
examples/acceptance_tests/107/lib/tests.ak
Normal file
@@ -0,0 +1,7 @@
|
||||
fn new_list() {
|
||||
[]
|
||||
}
|
||||
|
||||
test foo() {
|
||||
fn() { new_list }()() == []
|
||||
}
|
||||
Reference in New Issue
Block a user