Skip to content

Refactor Tree parameterization #16300

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

Merged
merged 1 commit into from
Nov 8, 2022
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 8, 2022

Refactor Tree parameterization to make use of -Yexplicit-nulls.

We now have:

   type Untyped = Type | Null
   abstract class Tree[+T <: Untyped]
   object untpd:
     type Tree = Tree[Untyped]
   object tpe:
     type Tree = Tree[Type]

Fixes #16298

Refactor `Tree` parameterization to make use of -Yexplicit-nulls.

We now have:

```scala
   type Untyped = Type | Null
   abstract class Tree[+T <: Untyped]
   object untpd:
     type Tree = Tree[Untyped]
   object tpe:
     type Tree = Tree[Type]
```
Copy link
Contributor

@olhotak olhotak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@odersky odersky merged commit 476bf86 into scala:main Nov 8, 2022
@odersky odersky deleted the refactor-Tree branch November 8, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor tree type parameters
3 participants