New issue
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
TypeBoundsTree children can have NoPosition #7450
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7450?orig=1 |
@paulp said: |
@paulp said: class A {
def f1[T](x: T) = x
def f2[T >: Null](x: T) = x
def f3[T <: String](x: T) = x
def f4[T >: Null <: String](x: T) = x
type T1
type T2 >: Null
type T3 <: String
type T4 >: Null <: String
} With or without -Yrangepos, I don't see NoPosition anywhere except inside the constructor:
|
Mirko Stocker (misto) said: |
unclear if there's something actionable here. comment/reopen if so |
A type definition like "type D <: AnyRef" has as its lower bound type a TypeTree with a NoPosition instead of an OffsetPosition. And if the lower bound is given, the upper bound has a NoPosition as well. I think this was introduced by the recent "Simplify type bounds" commit c29405dfe1.
The text was updated successfully, but these errors were encountered: