Skip to content

Commit 65a75df

Browse files
committed
Fix compiling stdlib
We need to load the type `scala.deprecated` more lazily.
1 parent 358602e commit 65a75df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,9 @@ class ClassfileParser(
681681
case tpnme.DeprecatedATTR =>
682682
val msg = Literal(Constant("see corresponding Javadoc for more information."))
683683
val since = Literal(Constant(""))
684-
res.annotations ::= Annotation(defn.DeprecatedAnnot, msg, since)
684+
res.annotations ::= Annotation.deferredSymAndTree(defn.DeprecatedAnnot) {
685+
New(defn.DeprecatedAnnot.typeRef, msg :: since :: Nil)
686+
}
685687

686688
case tpnme.ConstantValueATTR =>
687689
val c = pool.getConstant(in.nextChar)

0 commit comments

Comments
 (0)