File tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/parsing 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,10 @@ object JavaParsers {
367
367
// assumed true unless we see public/private/protected
368
368
var isPackageAccess = true
369
369
var annots = new ListBuffer [Tree ]
370
- def addAnnot (sym : ClassSymbol ) =
370
+ def addAnnot (tpt : Tree ) =
371
371
annots += atSpan(in.offset) {
372
372
in.nextToken()
373
- New (TypeTree (sym.typeRef) )
373
+ New (tpt )
374
374
}
375
375
376
376
while (true )
@@ -404,11 +404,11 @@ object JavaParsers {
404
404
flags |= Flags .DefaultMethod
405
405
in.nextToken()
406
406
case NATIVE =>
407
- addAnnot(NativeAnnot )
407
+ addAnnot(scalaDot(jtpnme. NATIVEkw ) )
408
408
case TRANSIENT =>
409
- addAnnot(TransientAnnot )
409
+ addAnnot(scalaDot(jtpnme. TRANSIENTkw ) )
410
410
case VOLATILE =>
411
- addAnnot(VolatileAnnot )
411
+ addAnnot(scalaDot(jtpnme. VOLATILEkw ) )
412
412
case SYNCHRONIZED | STRICTFP =>
413
413
in.nextToken()
414
414
case _ =>
You can’t perform that action at this time.
0 commit comments