Skip to content

Commit

Permalink
fixed an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrredo committed Apr 28, 2023
1 parent 7d5b9fc commit 6f8bc6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions hello.rd
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
var bool = "false";
println("" == bool)
var bool = "true";
if bool == "true" {
println(bool)
}
3 changes: 2 additions & 1 deletion lexer/lexerArithmeticOperations.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ loop:
if curType == -1 {
curType = ConvertToTokenType(reflect.TypeOf(va.Value).String())
}
if !(curType != ConvertToTokenType(reflect.TypeOf(fmt.Sprint(va.Value)).String()) && curType != c.Type) {
if (curType != ConvertToTokenType(reflect.TypeOf(fmt.Sprint(va.Value)).String()) && curType != c.Type) {
fmt.Println(curType, ConvertToTokenType(reflect.TypeOf(fmt.Sprint(va.Value)).String()))
return "", c, err.NewTypeError(l.Scanner.Pos())

}
Expand Down

0 comments on commit 6f8bc6e

Please sign in to comment.