KT-16264 Forbid usage of _ without backticks
Forbid underscore-only (_, __, ___, ...) names as callees and as types. If CHECK_TYPE directive is on, filter out UNDERSCORE_USAGE_WITHOUT_BACKTICKS messages.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
annotation class `__`(val value: String)
|
||||
|
||||
@<!UNDERSCORE_USAGE_WITHOUT_BACKTICKS!>__<!>("") class TestAnn
|
||||
@`__`("") class TestAnn2
|
||||
Reference in New Issue
Block a user