We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753a6f8 commit 834c3a2Copy full SHA for 834c3a2
src/lpython/semantics/python_comptime_eval.h
@@ -659,7 +659,6 @@ struct PythonIntrinsicProcedures {
659
throw SemanticError("str.capitalize() takes no arguments", loc);
660
}
661
ASR::expr_t *arg = args[0];
662
- ASR::ttype_t *arg_type = ASRUtils::expr_type(arg);
663
std::string val = ASR::down_cast<ASR::StringConstant_t>(arg)->m_s;
664
if (val.size()) {
665
val[0] = std::toupper(val[0]);
@@ -676,7 +675,6 @@ struct PythonIntrinsicProcedures {
676
675
throw SemanticError("str.lower() takes no arguments", loc);
677
678
679
680
681
for (auto &i: val) {
682
if (i >= 'A' && i <= 'Z') {
0 commit comments