We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa176c commit 61b32daCopy full SHA for 61b32da
compiler/src/dotty/tools/dotc/core/NameOps.scala
@@ -134,7 +134,8 @@ object NameOps {
134
}
135
136
/** Does the name match `extension`? */
137
- def isExtension: Boolean = name.toString == "extension"
+ def isExtension: Boolean = name match
138
+ case name: SimpleName => name.length == "extension".length && name.startsWith("extension")
139
140
/** Does this name start with `extension_`? */
141
def isExtensionName: Boolean = name match
0 commit comments