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
@VladUreche said (edited on Feb 3, 2015 2:20:31 PM UTC):
Another example:
$ cat gh-bug-104.scala
packageminiboxing.tests.compile.bug104classD[S] {
defbar(s: S) = {
classZdeffoo=newZ
()
}
}
$ scalac gh-bug-104.scala -Ycheck:typer
[Nowchecking: typer]
warning: [check: typer]
Out of scope symbol reference {
tree DefDefdeffoo:Z=newZ()
position OffsetPosition gh-bug-104.scala:6with sym MethodSymboldeffoo:Z in method bar ->classD->packagebug104
encl(1) MethodSymboldefbar(s: S):Unit in classD->packagebug104
encl(2) ClassSymbolD: miniboxing.tests.compile.bug104.D[S] in packagebug104
ref to ClassSymbolZ () in method bar ->classD->packagebug104
}
one warning found
For higher-kinded types:
And one more example in the comments.
The text was updated successfully, but these errors were encountered: