antlr / antlr/antlr4-cpp

About antlrcpp::Any derived.

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
80
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Hi,
There are the following codes:
```
class A {};
class B : public A {};
B *b = new B;
antlrcpp::Any any = b;
bool is = any.is();
```
Variable ìs' always `false'. How do I solve this type of derivation problem?

Contributor guide

Open the contributing guide

Research direction

Start at the antlrcpp::Any implementation and its is() entry point, then reproduce the supplied A/B pointer example. Done means the expected behavior for checking a base-class pointer is resolved, with coverage for this derivation case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.