Sealed classes: restricted keyword/identifier -> contextual keyword (IDEA-257414)

GitOrigin-RevId: a3b7cb3c6eb3a65f78cf473fb93ddfa9946dea38
This commit is contained in:
Artemiy Sartakov
2021-01-19 15:02:29 +07:00
committed by intellij-monorepo-bot
parent 66ab33ff7c
commit 45d71a0820
11 changed files with 23 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ class YieldStatements {
}
}
class <error descr="'yield' is a restricted identifier and cannot be used for type declarations">yield</error> {
class <error descr="'yield' is a contextual keyword and cannot be used for type declarations">yield</error> {
void test(<error descr="Illegal reference to restricted type 'yield'">yield</error> yield) {
}