add checking of numeric types around boolean operators

This commit is contained in:
Luna 2019-09-27 13:49:53 -03:00
parent 68b9855309
commit 466243fc2b
2 changed files with 28 additions and 5 deletions

View file

@ -3,14 +3,19 @@ const (
)
fn f() i32 {
//var a = 3;
// var a = 3;
// return a;
return 2;
}
fn f2() i32 {
return 1301;
return f() + 2;
}
//fn f2() bool {
// return 1 > 10;
//}
enum B {
a
b