Skip to content

'subscript' in 'TimePeriodGroup' should be a public function #740

@semihunaldi

Description

@semihunaldi

'subscript' in 'TimePeriodGroup' is not public, which cannot be accessed outside the class.
As a result, the following statement will be failed to compile.

let chain = TimePeriodChain()
chain.append(TimePeriod())
chain[0]  // Error: 'subscript' is inaccessible due to 'internal' protection level.

Any reason why it is internal?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions