File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import util.Positions._
14
14
import Decorators ._
15
15
import config .Printers .typr
16
16
import Symbols ._ , TypeUtils ._ , SymUtils ._
17
- import reporting .diagnostic .messages .SuperCallsNotAllowedInline
17
+ import reporting .diagnostic .messages .{ NotAMember , SuperCallsNotAllowedInline }
18
18
19
19
/** A macro transform that runs immediately after typer and that performs the following functions:
20
20
*
@@ -272,7 +272,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
272
272
def checkIdent (ident : untpd.Ident ): Unit = {
273
273
val name = ident.name.asTermName
274
274
if (name != nme.WILDCARD && ! exprTpe.member(name).exists && ! exprTpe.member(name.toTypeName).exists)
275
- ctx.error(s " ${ident. name} is not a member of ${expr.show} " , ident.pos)
275
+ ctx.error(NotAMember (exprTpe, name, " value " ) , ident.pos)
276
276
}
277
277
selectors.foreach {
278
278
case ident : untpd.Ident => checkIdent(ident)
You can’t perform that action at this time.
0 commit comments