Skip to content

Commit 0baeed8

Browse files
committed
WIP - test only
1 parent b0b19d0 commit 0baeed8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

+11
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ trait SymDenotations { this: Context =>
3535
val result =
3636
if (symbol.isClass)
3737
if (initFlags is Package) new PackageClassDenotation(symbol, owner, name, initFlags, initInfo, initPrivateWithin, ctx.runId)
38+
else if (name.toString == "AndType") new ClassXDenotation(symbol, owner, name, initFlags, initInfo, initPrivateWithin, ctx.runId)
3839
else new ClassDenotation(symbol, owner, name, initFlags, initInfo, initPrivateWithin, ctx.runId)
3940
else new SymDenotation(symbol, owner, name, initFlags, initInfo, initPrivateWithin)
4041
result.validFor = stablePeriod
@@ -1238,6 +1239,16 @@ object SymDenotations {
12381239
else this
12391240
}
12401241

1242+
class ClassXDenotation private[SymDenotations] (
1243+
symbol: Symbol,
1244+
ownerIfExists: Symbol,
1245+
name: Name,
1246+
initFlags: FlagSet,
1247+
initInfo: Type,
1248+
initPrivateWithin: Symbol,
1249+
initRunId: RunId)
1250+
extends ClassDenotation(symbol, ownerIfExists, name, initFlags, initInfo, initPrivateWithin, initRunId)
1251+
12411252
/** The contents of a class definition during a period
12421253
*/
12431254
class ClassDenotation private[SymDenotations] (

0 commit comments

Comments
 (0)