You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compiled the above code by scalac, it succeeded. However, when I used dotc, it failed with the following error message:
-- [E008] MemberNotFoundError:Test.scala:24:56-----------------------------24|caseTypedSplice(tpt1: AppliedTypeTree) => tpt1.tpe.dealias
|^^^^^^^^^^^^^^^^| value `dealias` is not a member of Null@uncheckedVariance
one error found
When I changed tpt1: AppliedTypeTree into tpt1: tpd.AppliedTypeTree in line 24, it was compiled successfully on both scalac and dotc.
Changing tpt1: AppliedTypeTree into tpt1 @ Trees.AppliedTypeTree() also worked.
I found this issue while working on issue #4557. Related PR can be found at #4798.
The text was updated successfully, but these errors were encountered:
My initial analysis is that tpt1 should be typed as tpd.Tree & AppliedTypeTree, that this simplifies to Trees. AppliedTypeTree[Type], and that then tpt1.tpe should have type Type and not Null, so Scalac is right. Haven't verified what happens in Dotty.
When I compiled the above code by scalac, it succeeded. However, when I used dotc, it failed with the following error message:
When I changed
tpt1: AppliedTypeTree
intotpt1: tpd.AppliedTypeTree
in line 24, it was compiled successfully on both scalac and dotc.Changing
tpt1: AppliedTypeTree
intotpt1 @ Trees.AppliedTypeTree()
also worked.I found this issue while working on issue #4557. Related PR can be found at #4798.
The text was updated successfully, but these errors were encountered: