Skip to content

Commit

Permalink
Removed checking type first letter is uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pino committed Feb 28, 2021
1 parent db0fb34 commit 0403f3e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/semantics/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ def __init__(self) -> None:
def create_type(self, name:str) -> Type:
if name in self.types:
raise SemanticError(f'Type with the same name ({name}) already exists.')
if name[0] != name[0].upper():
raise SemanticError(f'Type name ({name}) must start with upper case')
typex = self.types[name] = Type(name)
return typex

Expand Down

0 comments on commit 0403f3e

Please sign in to comment.