error: unexpected dedent
I have run the following python program program10.py by codon.
class ZgM3gNx202 (): q1Z69u23 = 31 def eih319224 ( self ) : u0r65y5c8 = 6960 self.q1Z69u23/=(1if((1if(self.q1Z69u23==0)else(self.q1Z69u23))==0)else((1if(self.q1Z69u23==0)else(self.q1Z69u23)))) ; if name == 'main': po0hER8fZ= ZgM3gNx202(); po0hER8fZ.eih319224() print(po0hER8fZ.q1Z69u23)
And it output error message as follow: codon_program10.py:5:1: error: unexpected dedent
I hava run it by both python3 and pypy3 and output the following content: 1.0
The related files can be found in https://github.com/starbugs-qurong/python-compiler-test/tree/main/codon/python_10
@starbugs-qurong Same as in #322, and you can not change class member type. You have to declare it as float, if you are going to set its value to a float.
class ZgM3gNx202():
q1Z69u23: float = 31.0
Thank you. I have made modifications to the program based on your suggestions, and the error "unexpected dedent" still exist.
The related files can be found in https://github.com/starbugs-qurong/python-compiler-test/tree/main/codon/python_10
@starbugs-qurong Duplicate of #317
This is certainly a bug in parser.