File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ class Namer { typer: Typer =>
694
694
enterSymbol(classConstructorCompanion(classSym.asClass))
695
695
else
696
696
for moduleSym <- companionVals do
697
- if moduleSym.is(Module ) && ! moduleSym.isDefinedInCurrentRun then
697
+ if moduleSym.lastKnownDenotation. is(Module ) && ! moduleSym.isDefinedInCurrentRun then
698
698
val companion =
699
699
if needsConstructorProxies(classSym) then
700
700
classConstructorCompanion(classSym.asClass)
Original file line number Diff line number Diff line change
1
+ import scala .quoted .*
2
+ transparent inline def getTypeInfo [T ]() = $ { getTypeInfoImpl[T ] }
3
+ def getTypeInfoImpl [T : Type ](using ctx : Quotes ): Expr [Unit ] = ' { () }
Original file line number Diff line number Diff line change
1
+
2
+ class Wrapper1 [A ]
3
+ val a = {
4
+ getTypeInfo[Any ]()
5
+ val wrapper2 = Wrapper1 [Any ]()
6
+ }
You can’t perform that action at this time.
0 commit comments