INRIA / INRIA/spoon

How would one obtain getType of CtInvocation which is a lambda expression?

Open
#4,908 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

For example,

`assertThrows(NullPointerException.class, () -> getPredicateInstance(new Predicate[] { null }));`

I want to obtain return type of `getPredicateInstance`

This function is an abstract function defined prior as shown here:
`protected abstract Predicate getPredicateInstance(Collection> predicates);`

Currently, it is returning `null`. I was wondering if there is any work around I can try?

Thank you so much,
Kim

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.