Skip to content
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

feat: add Flix non-primitives and Java objects subtyping with Null type #7926

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

chanattan
Copy link
Contributor

Takes back work from #7919.

@chanattan chanattan marked this pull request as draft June 21, 2024 13:12
@magnus-madsen
Copy link
Member

What's the status on this?

@chanattan
Copy link
Contributor Author

I am waiting for @mlutze's review.
It should be working otherwise, but I should probably add some null test cases.

@magnus-madsen
Copy link
Member

I am waiting for @mlutze's review. It should be working otherwise, but I should probably add some null test cases.

Please add those tests then. Thanks!

@mlutze
Copy link
Member

mlutze commented Jun 26, 2024

I am waiting for @mlutze's review. It should be working otherwise, but I should probably add some null test cases.

Be sure to hit the "ready for review" button when it's ready. Otherwise I think you're still working on it :)

@magnus-madsen
Copy link
Member

@chanattan Add tests and then we can go.

main/src/ca/uwaterloo/flix/language/phase/Eraser.scala Outdated Show resolved Hide resolved
main/src/ca/uwaterloo/flix/language/phase/Verifier.scala Outdated Show resolved Hide resolved
@@ -178,6 +178,7 @@ object BackendType {
case MonoType.String => BackendObjType.String.toTpe
case MonoType.Regex => BackendObjType.Regex.toTpe
case MonoType.Region => BackendObjType.Region.toTpe
case MonoType.Null => BackendObjType.Native(JvmName.ofClass(classOf[Object])).toTpe // to check
Copy link
Member

Choose a reason for hiding this comment

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

@JonathanStarup can you verify the JVM stuff?

@chanattan chanattan marked this pull request as ready for review June 27, 2024 14:25
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.

None yet

3 participants