We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e1309 commit af8ef13Copy full SHA for af8ef13
compiler/src/dotty/tools/dotc/core/TypeErasure.scala
@@ -32,7 +32,9 @@ object SourceLanguage:
32
SourceLanguage.Java
33
// Scala 2 methods don't have Inline set, except for the ones injected with `patchStdlibClass`
34
// which are really Scala 3 methods.
35
- else if denot.isClass && denot.is(Scala2x) || (denot.maybeOwner.lastKnownDenotation.is(Scala2x) && !denot.is(Inline)) then
+ else if denot.isClass && denot.is(Scala2x)
36
+ || (denot.maybeOwner.lastKnownDenotation.is(Scala2x) && !denot.is(Inline))
37
+ || denot.is(Param) && denot.maybeOwner.is(Method) && denot.maybeOwner.maybeOwner.is(Scala2x) then
38
SourceLanguage.Scala2
39
else
40
SourceLanguage.Scala3
0 commit comments