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

Support Definitely non null type language feature. #1278

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

neetopia
Copy link
Collaborator

  • Add api for definitely non null type element.
  • Implement definitely non null type element for FE1.0.

fixes #1127

}

override val enclosedType: KSClassifierReference by lazy {
(ktIntersectionType.getLeftTypeRef()?.typeElement as KtUserType).let { KSClassifierReferenceImpl.getCached(it) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can throw cast exceptions which are implementation specific. Please check the type and throw IllegalStateException like that in KSTypeReferenceImpl.element.

* Add api for definitely non null type element.
* Implement definitely non null type element for FE1.0.

fixes google#1127
@neetopia neetopia merged commit c048c6b into google:main Jan 19, 2023
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.

Type T & Any can't be analyzed even in the latest version.
2 participants