Skip to content

Possible resolution of KT-68726 (Update spec: Nested class prohibited in function scope whilst inner class is allowed) #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

MarkTheHopeful
Copy link

No description provided.

@@ -867,6 +869,8 @@ fun foo() {
}
```

Similar to object literals and [inner classes][Nested and inner classifiers], only inner classes are allowed in local classes. Interfaces, objects or nested classes are forbidden.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Similar to object literals and [inner classes][Nested and inner classifiers], only inner classes are allowed in local classes. Interfaces, objects or nested classes are forbidden.
Local classes have restrictions similar to object literals and [inner classes][Nested and inner classifiers]; only inner classes are allowed in local classes. Nested classes, interfaces or objects are forbidden.

@ice-phoenix ice-phoenix merged commit f9a29c0 into Kotlin:develop Mar 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants