add checking of numeric types around boolean operators
This commit is contained in:
parent
68b9855309
commit
466243fc2b
2 changed files with 28 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue