kemal-rest-api icon indicating copy to clipboard operation
kemal-rest-api copied to clipboard

Error including your application - Int in union

Open reduced-reptile opened this issue 6 years ago • 0 comments

Platform: Windows 10 VIA WSL Ubuntu 18.04 Crystal 0.31.1 [0e2e1d067] (2019-09-30) LLVM: 8.0.0 Default target: x86_64-unknown-linux-gnu

~/git/kemal-rest-api$ crystal spec --error-trace
In src/kemal-rest-api/resource.cr:6:56

 6 | abstract def create(args : Hash(String, String)) : Int | Nil
                                                        ^--
Error: can't use Int in unions yet, use a more specific type

reduced-reptile avatar Nov 05 '19 10:11 reduced-reptile