Errors where function named Array returns Generic of Array

Open
#1,117 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

No source file or test is named; start by reproducing the Haxe example from the issue at commit e1798e6f7bf61f01d0ddae38785e0113cd285d4a. Trace the generated or reported result for the function named Array, and consider the issue complete when the problematic behavior is understood and covered by a regression test.

Written by the indexing model from the issue text.

Description

class Main {
	static function main() {
	}
       //fails silently
	static function Array<T>(self:std.Array<T>):TestWrap<std.Array<T>>{
		return self;
	}
}
@:forward abstract TestWrap<T>(T) from T to T{

}

e1798e6f7bf61f01d0ddae38785e0113cd285d4a

Dominant language
C++
Stars
330
Forks
237
Avg merge
1d 3h
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hxcpp

All issues in HaxeFoundation/hxcpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.