fix(KT-38262): add ability to create classes with methods that have reserved keyword as an identifier.
This commit is contained in:
+1
-1
@@ -588,7 +588,7 @@ class ExportModelGenerator(
|
||||
|
||||
val name = function.getExportedIdentifier()
|
||||
// TODO: Use [] syntax instead of prohibiting
|
||||
if (name in allReservedWords)
|
||||
if (parentClass == null && name in allReservedWords)
|
||||
return Exportability.Prohibited("Name is a reserved word")
|
||||
|
||||
return Exportability.Allowed
|
||||
|
||||
Reference in New Issue
Block a user