We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to #3356, tested with "org.wvlet.airframe" %% "airframe-surface" % "24.2.2"
"org.wvlet.airframe" %% "airframe-surface" % "24.2.2"
Unable to generate surface of a class with package private values
import wvlet.airframe.surface.Surface object Tools { class Pos(private[Tools] val pos: String) { private[Tools] def getPos: String = pos } } object Main { Surface.of[Tools.Pos] def main(args: Array[String]): Unit = { } }
Error is:
value pos cannot be accessed as a member of (x : Tools.Pos) from module class Main$.
Notes:
Surface.methodsOf[Tools.Pos]
getPos
Surface.methodsOf[tools.Tools.Pos]
pos
methodsOf
object Tools { class Pos(val pos: String) { private[Tools] def getPos: String = pos } } object Main { Surface.methodsOf[Tools.Pos] def main(args: Array[String]): Unit = { } }
method getPos cannot be accessed as a member of Tools.Pos from module class Main$.
All these variants work fine in Scala 2.
The text was updated successfully, but these errors were encountered:
Target test for wvlet#3416
0a5e11a
bf6848e
Fix package private parameters and members (fixes wvlet#3416)
7f3498a
surface (fix): Fix #3416 and #3419 - protected and package private ac…
d68b2bd
…cess (#3423) Starting with tests - I hope I will be able to implement the fix as well. --------- Co-authored-by: Taro L. Saito <[email protected]>
Successfully merging a pull request may close this issue.
Similar to #3356, tested with
"org.wvlet.airframe" %% "airframe-surface" % "24.2.2"
Unable to generate surface of a class with package private values
Error is:
Notes:
Surface.methodsOf[Tools.Pos]
gives the same error.getPos
, there are no errors when callingSurface.methodsOf[tools.Tools.Pos]
pos
public, I get a different error withmethodsOf
:Error is:
All these variants work fine in Scala 2.
The text was updated successfully, but these errors were encountered: