Allow implicit discard when right-hand side is Void.
This is the most intuitive/expected behavior. Otherwise, it forces a pointless let-binding to 'Void' or into a discard.
This commit is contained in:
7
examples/acceptance_tests/098/aiken.lock
Normal file
7
examples/acceptance_tests/098/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]
|
||||
3
examples/acceptance_tests/098/aiken.toml
Normal file
3
examples/acceptance_tests/098/aiken.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
name = "aiken-lang/acceptance_test_098"
|
||||
version = "0.0.0"
|
||||
description = ""
|
||||
8
examples/acceptance_tests/098/lib/foo.ak
Normal file
8
examples/acceptance_tests/098/lib/foo.ak
Normal file
@@ -0,0 +1,8 @@
|
||||
fn label(str: String) -> Void {
|
||||
trace str Void
|
||||
}
|
||||
|
||||
test foo() {
|
||||
label(@"Foo")
|
||||
True
|
||||
}
|
||||
Reference in New Issue
Block a user