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

Integrate function semtype into jBallerina type engine #42622

Open
wants to merge 8 commits into
base: nutcracker
Choose a base branch
from

Conversation

heshanpadmasiri
Copy link
Member

@heshanpadmasiri heshanpadmasiri commented Apr 24, 2024

Purpose

$subject

Depends on #42511
Fixes #42512

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@heshanpadmasiri heshanpadmasiri force-pushed the feat/semtype-fn branch 2 times, most recently from 8f507dd to e8ae63a Compare April 24, 2024 07:35
@heshanpadmasiri heshanpadmasiri force-pushed the feat/semtype-fn branch 2 times, most recently from 586c49d to 5c5e48d Compare May 6, 2024 05:17
When we have a cyclic intersection we first create the member types then
create the intersection type. Only after this we fill in the member
types, and we have no way of detecting this has happen and reset the
semtype calculation.
@@ -59,6 +59,15 @@ private static boolean functionPathIsEmpty(Context cx, SemType params, Conjuncti
FunctionAtomicType t = cx.functionAtomType(neg.atom);
SemType t0 = t.paramType();
SemType t1 = t.retType();
if (t.isGeneric()) {
// TODO: this is not correct. Ideally we should either resolve generic function calls to concrete
Copy link
Member Author

Choose a reason for hiding this comment

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

Created #42700 to track this

Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

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

1 participant