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
-- [E007] TypeMismatchError:TestInnerClasses.scala:7:77---------------------4|valici_inner3:InnerClass#Inner[Long] =InnerClass.createInnerStatic[Long](47L) // error|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|Found: lib.InnerClass.Inner[Long]
|Required: lib.InnerClass#Inner[Long]
|| longer explanation available when compiling with`-explain`-- [E007] TypeMismatchError:TestRawTypes.scala:11:23------------------------11|RawTypes.mii_Raw_Raw(cd_ii)
|^^^^^|Found: (tastytest.TestRawTypes.cd_ii : lib.RawTypes#C[String]#D[String])
|Required: lib.RawTypes.C.D[?]
|| longer explanation available when compiling with`-explain`2 errors found
Expectation
ici_inner1 should fail to type because from java classfiles it doesn't work. (more forgivable because scala 2 has same behavior)
ici_inner3 should be correctly typed (as when reading from class files), It is incorrectly typed as a static selection of lib.InnerClass.Inner[Long] when it should be lib.InnerClass#Inner[Long] as when reading from class files
mii_Raw_Raw(cd_ii) should be correctly typed (as when reading from class files), It is incorrectly typed as a static selection of lib.RawTypes.C.D[?] when it should be lib.RawTypes#C#D[?] as when reading from class files
The text was updated successfully, but these errors were encountered:
bishabosha
changed the title
Java source dependency with inner class in signature is incorrect
Java source dependency with inner class type is incorrectly typed as static selection
Feb 7, 2024
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.4.0-RC4
Minimized code
cs launch scalac:3.4.0-RC4 -- InnerClass.java RawTypes.java TestInnerClasses.scala TestRawTypes.scala
Output
Expectation
ici_inner1
should fail to type because from java classfiles it doesn't work. (more forgivable because scala 2 has same behavior)ici_inner3
should be correctly typed (as when reading from class files), It is incorrectly typed as a static selection oflib.InnerClass.Inner[Long]
when it should belib.InnerClass#Inner[Long]
as when reading from class filesmii_Raw_Raw(cd_ii)
should be correctly typed (as when reading from class files), It is incorrectly typed as a static selection oflib.RawTypes.C.D[?]
when it should belib.RawTypes#C#D[?]
as when reading from class filesThe text was updated successfully, but these errors were encountered: