diff --git a/hello.rd b/hello.rd index 34ddb84..9ec7ad9 100644 --- a/hello.rd +++ b/hello.rd @@ -1,4 +1,2 @@ -var bool = "true"; -if bool == "true" { - println(bool) -} \ No newline at end of file +var bool = true; +println(bool=="s") \ No newline at end of file diff --git a/lexer/lexerArithmeticOperations.go b/lexer/lexerArithmeticOperations.go index b322ce5..28af356 100644 --- a/lexer/lexerArithmeticOperations.go +++ b/lexer/lexerArithmeticOperations.go @@ -157,7 +157,7 @@ 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(va.Value).String()) && curType != c.Type) { fmt.Println(curType, ConvertToTokenType(reflect.TypeOf(fmt.Sprint(va.Value)).String())) return "", c, err.NewTypeError(l.Scanner.Pos())