mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
add failing expectation for an invalid input type
This commit is contained in:
parent
0ce4639a1b
commit
c10eb63575
9
tests/compiler/stdlib/invalid_input_ident_fail.leo
Normal file
9
tests/compiler/stdlib/invalid_input_ident_fail.leo
Normal file
@ -0,0 +1,9 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
*/
|
||||
|
||||
|
||||
function main(public dne: DNE, a: bool) -> bool {
|
||||
return a;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372011]: The type DNE is not a valid built in type.\n --> compiler-test:4:27\n |\n 4 | function main(public dne: DNE, a: bool) -> bool {\n | ^^^\n"
|
Loading…
Reference in New Issue
Block a user