add failing expectation for an invalid input type

This commit is contained in:
gluax 2022-05-31 10:36:35 -07:00
parent 0ce4639a1b
commit c10eb63575
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
/*
namespace: Compile
expectation: Fail
*/
function main(public dne: DNE, a: bool) -> bool {
return a;
}

View File

@ -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"